|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Dec 2003
Lives in Clearwater, Florida
Hosted on Pixel
45 posts
Gave thanks: 0
Thanked 0 times
|
htaccess image redirectoin
Hello,
I upgraded from gallery 1 to gallery 2 and I created a new folder for gallery 2 in case it didn't work out. Now I have a .htaccess file which wil redirect anyone going into the depreciated folder into the new one, this has broken all images that was pointing to the old gallery. My question is, can I put the following in the same .htaccess file to make all broken pictures show the image (I am going to *shop an image which shows peoples the path to the new gallery) Code:
RewriteEngine on RewriteRule \.(gif|jpg)$ http://www.mydomain.com/redirect.jpg [R,L] Thanks! |
|
|
|
|
|
#2 (permalink) |
|
Demontech Hosting CEO
Excelling Contributor
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
|
Yes you can do that.
__________________
Sincerely, Demon High Quality Hosting Service Provided By --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|