Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Redirecting dynamic pages


siteseo - 4:59 pm on Jan 30, 2006 (gmt 0)


I'm trying to redirect an URL that looks like this:
http://www.domain.com/folder/page.php?q=16
to this:
http://www.domain.com/newfolder/page.php?q=16

I've used the following construction to no avail:
RewriteCond %{QUERY_STRING} ^q\=16$ [NC]
RewriteRule ^(.*)$ [domain.com...] [R=301,L]

Straight redirects don't work because of the variable that exists in the first URL.

Any other suggestions for handling redirections on URL's with variables in 'em?

[edited by: jdMorgan at 2:20 am (utc) on Feb. 3, 2006]
[edit reason] De-linked. [/edit]


Thread source:: http://www.webmasterworld.com/apache/5461.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com