PAth changed on resources in drupal site using WAMP
Posted by: davidw (---.roc.noaa.gov)
Date: October 31, 2017 08:12PM

Hi I have WAMP installed on a windows 10 pc it was working perfectly, some how the path got changed on the resources and not sure how to correct it.

I have a drupal 7 install adding images to a page my path should be /sites/images/image.png
but now to get my images to show I have to go to each image and change the path to reflect the root folder of the site.
example:
if my website is in a folder called " mysite" I would have to go and change the path to /mysite/site/images/image.png to see the image now once I move the site to a production server my images wont show because the path were change when on the local host .

If any one knows where to go to correct this I would be much appreciative.

Cheers
Dave

Re: PAth changed on resources in drupal site using WAMP
Posted by: Otomatic (Moderator)
Date: October 31, 2017 08:26PM

Hi,

You MUST use VirtualHost for your local site. Read and apply : The need for Virtual Host

You did not realize it, but on your production server, your site is installed in a VirtualHost, like all the hosters.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.35 - PHP 7.2.11/7.1.23/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.35 - PHP 7.2.11/7.1.23/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Re: PAth changed on resources in drupal site using WAMP
Posted by: davidw (---.roc.noaa.gov)
Date: October 31, 2017 08:48PM

Thanks I had set that up but was not working the way it did when installed . Looks like it is working better now.
Cheers
For your help!
D

Sorry, only registered users may post in this forum.