Forum Moderators: phranque

Message Too Old, No Replies

Redirect from dynamic URL to dynamic URL

         

Scooter24

9:25 pm on Apr 20, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



I need to redirect from a URL like
www.site.com/galleries/Malaysia/Rest/img.php?pic=7

to

www.site.com/galleries/Malaysia/Ipoh/img.php?pic=4

for instance.

I placed a .htaccess file in the www.site.com/galleries/Malaysia/Rest/ directory containing this line:

redirect 301 /galleries/Malaysia/Rest/img.php?pic=7 [site.com...]

and it didn't work. But for instance

redirect 301 /galleries/Malaysia/Rest/imagehtm/image7.htm [site.com...]

works and redirects from
[site.com...]
to
[site.com...]

Now, I checked and it appears that you have to encode somehow the URL-path part:
[httpd.apache.org...]

I tried to URL-encode /galleries/Malaysia/Rest/img.php?pic=7 obtaining

%2Fgalleries%2FMalaysia%2FRest%2Fimg.php%3Fpic%3D7

but even this didn't work. What can I do?

Scooter24

8:09 am on Apr 22, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



No reply? Nobody who knows?