Page 1 of 1

What shall i add in Apache in order php files see new paths?

Posted: Fri May 28, 2010 3:15 am
by g_p
Hello,

i have a web application which consists of php files and images.
in my php files i refer to a file image like this

Code: Select all


"../".$my_root_site."images/thumbs/".$_SESSION['res'] etc ...

I have a problem now because i changed the location(path) of my images and the php files cannot find the
new location unless i modify all of my files (and they are many!!!) and do

Code: Select all


"../../".$my_root_site."images/thumbs/".$_SESSION['res'] etc ...

My images now are up one level now.

I'm studying for Apache alias and i saw redirect and alias. What am i supposed to add in Apache in order
for my php files to see the new path and not the old path. Shall i use regex?

Please, any advice would be very helpful!!!

Thanks

Re: What shall i add in Apache in order php files see new pa

Posted: Fri May 28, 2010 3:23 am
by Brenden
If you have Dreamweaver you can do a folder-wide find/replace