Forum Moderators: phranque

Message Too Old, No Replies

Redirect Query String to Non-Query String

Redirect a query string URL to static URL, that no longer uses query string

         

bhuge

3:59 am on Aug 26, 2008 (gmt 0)

10+ Year Member



I apologize if this has already been answered, but I cannot find a solution anywhere.

Basically I was hoping someone could help me redirect a URL like this:

[mydomain.com...]

to:

[mydomain.com...]

Apparently the problems I'm running into is:

a) in a straight redirect line of code, the server doesn't read the query string
b) if i use a query capture script, i do not use the query in the target URL, so it doesn't seem like it would redirect properly (all the query strings would go to the same page?)

I'm somewhat of a layman with Apache and would appreciate any point in the right direction. Thanks.

killahbeez

6:45 am on Aug 26, 2008 (gmt 0)

10+ Year Member



RewriteCond %{THE_REQUEST} ^GET\ /secondary\.php\?id=1234\ HTTP
RewriteRule . /activities/golf/? [L]