Originally Posted by
bigwavemaui
Options +FollowSymlinks
RewriteEngine on
Redirect 301 /index.php?main_page=contact_us http://samedomainascart.com/samedomainblog/contact-island/
I know I must be doing something stupid.
You turn the mod_rewrite RewriteEngine "on" and then use the Redirect syntax. Redirect is not a part of mod_rewrite. Redirect cannot deal with URL requests that include parameters. RewriteRule with a preceding RewriteCond can do the job.
Try:
Code:
RewriteCond %{QUERY_STRING} main_page=contact_us
RewriteRule ^(index\.php)?$ http://samedomainascart.com/samedomainblog/contact-island/ [R=301,NC,L]
Bookmarks