Return to Snippet

Revision: 41398
at December 14, 2011 04:50 by nielsenrc


Updated Code
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]

Revision: 41397
at February 17, 2011 07:50 by nielsenrc


Updated Code
RewriteCond %{QUERY_STRING} ^querystring$
RewriteRule ^index\.php$ http://www.domain.com/page.html? [R=301,L]

Revision: 41396
at February 17, 2011 07:49 by nielsenrc


Updated Code
RewriteCond %{QUERY_STRING} ^option=com_content&view=article&id=55&Itemid=80$
RewriteRule ^index\.php$ http://www.domain.com/page.html? [R=301,L]

Revision: 41395
at February 17, 2011 07:49 by nielsenrc


Initial Code
RewriteCond %{QUERY_STRING} ^option=com_content&view=article&id=55&Itemid=80$
RewriteRule ^index\.php$ http://www.paradigmroofs.com/standing-seam-residential.html? [R=301,L]

Initial URL


Initial Description
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

Initial Title
301 Redirect for Query Strings

Initial Tags
htaccess

Initial Language
Apache