Hi All,
I am new to this and am struggling past two days.
What I am trying to do is redirect
example.com/company/index.php to example.com/about_us
example.com/company/index.php?page=12 to example.com/about_us/history
example.com/info/index.php?page=12 to example.com/contact_us
I have tried the following test code:
RewriteEngine on
RewriteRule ^policies/$ http://www.example.com/news? [R=301,L]
(http://legacy_web/about_us/ to http://www.example.com/news)
RewriteCond %{QUERY_STRING} page=23$
RewriteRule (.*) http://www.example.com? [R=301,L]
(http://legacy_web/about_us/index.php?page=23 to http://www.example.com)
RewriteRule ^policies/index\.php$ http://www.example.com? [R=301,L]
(http://legacy_web/about_us/index.php to http://www.example.com)
These work. The only issue is that even http
://legacy_web/info/index.php?page=23 redirects to www.example.com
similar to the policies above.
A shove in the right direction much appreciated.
Thank you for your time and help
[edited by: phranque at 9:31 am (utc) on Sep 24, 2013]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]