Forum Moderators: phranque

Message Too Old, No Replies

Problem with an htaccess 301 redirect

         

brakkar

10:02 pm on Dec 12, 2006 (gmt 0)

10+ Year Member



Hi,
i'm trying to redirect, from htaccess:

[mysite.com...]
to
[mysite.com...]

so I put:

redirect 301 /template.php?section=stocks [mysite.com...]

but my redirect is ignored... I guess there is a problem with the "?"

How should I correct this?

Thanks,
Brakkar

jd01

10:07 pm on Dec 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe the 'Changing Dynamic URLs to Static' entry in the library has the exact information you need.

Apache Library and Tutorials [webmasterworld.com]

Let us know if your question is not answered by the entry.

You will need to use THE_REQUEST to redirect to the 'static location' to prevent looping.

Justin