Problem with image links
3 posts by 3 authors in: Forums > CMS Builder
Last Post: February 12, 2016 (RSS)
I have stored the CMS in the main folder of a website: www.website1.com/cms/
The site itself sits within a subfolder on that site e.g. www.website1.com/actualsite/
Everything has been working fine until I pointed a new .com domain name to the site (www.website2.com)
If you visit the site at www.website1.com/actualsite/ everything works fine, however if you try and visit the site from www.website2.com everything loads perfectly except the images, as the image URLs being generated are now:
www.website2.com/cms/uploads
instead of
www.website1.com/cms/uploads
Does anyone know how I can fix this?
Hi superhappybunnycat,
I'm not sure what's causing this issue, I think I need to be able to visit the two domain names and see this issue happening to debug it. Please could you fill out a second level support request:
https://www.interactivetools.com/support/email_support_form.php
With links to the two domains affected so I can take a closer look at the problem?
Cheers!
Greg
PHP Programmer - interactivetools.com
By Damon - February 12, 2016
Hi,
I just replied to your support ticket.
The problem was that images were using a relative URL under Admin > General settings in the Upload Folder URL field:
/cms/uploads
This works when the images are on the same domain but if the domain is different, the images are not found.
Changed the Admin > General settings in the Upload Folder URL field to a full URL and everything works on both:
Example: http://www.site.com/cms/uploads
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/