redirect get URL?

Posted by Wolfr on Server Fault See other posts from Server Fault or by Wolfr
Published on 2010-02-03T21:04:27Z Indexed on 2010/03/12 11:08 UTC
Read the original article Hit count: 213

Filed under:
|
|

I'm almost done writing the .htaccess file to redirect some URLs to a new domain.

One final thing: I have URLs with this structure:

http://www.domain.be/?s=searchterm

How do I capture them?

RewriteRule ^\?s=(.*)$       http://newsubdomain.domain.be/?s=$1    [NC,L]

Any ideas?

© Server Fault or respective owner

Related posts about .htaccess

Related posts about htaccess