/ Published in: Apache
Key for code below:
querystring = just the query string. (e.g. url=page) index = the page that the query string is appended to (e.g. index.php) domain.com = the domain and page you want to rewrite to
Expand |
Embed | Plain Text
RewriteCond %{QUERY_STRING} ^querystring$ RewriteRule ^index\.php$ http://www.domain.com/page.html? [R=301,L] //EXAMPLE RewriteCond %{QUERY_STRING} ^url=page1$ RewriteRule ^content\.php$ http://www.domain.com/index.html? [R=301,L]
You need to login to post a comment.
