Forum Moderators: phranque
www.domain1.com/something/page.asp to www.example.com/somethingelse/anotherpage.html - Can’t get this to work I always redirect to www.example.com/something/page1.html.
So if someone can help me that would be great.
This is what I have tried with many variations today and moving one over the other.
RewriteCond %{HTTP_HOST} ^domain1.com
RewriteRule (.*) http://www.example.com/something/page1.html [R=301,L]
RewriteCond %{HTTP_HOST} ^www.domain1.com
RewriteRule (.*)http://www.example.com/something/page1.html [R=301,L]
RewriteCond %{HTTP_HOST} ^domain1.com/something/page.asp
RewriteRule (.*) http://www.example.com/somethingelse/anotherpage.html [R=301,L]
RewriteCond %{HTTP_HOST} ^ domain1.com/something/page.asp
RewriteRule (.*)http://www.example.com/www.example.com/somethingelse/anotherpage.html [R=301,L]