I previosly have a list with all pages like this:
Redirect 301 /oldpage1.html http://example.com/newpage1.html
Redirect 301 /oldpage1.html http://example.com/newpage1.html
Now I tried to move from old domain to newdomain in RewriteRule and Redirect 301 stop working.
I tried to use both %{REQUEST_URI} and %{HTTP_HOST} this way without success:
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule ^/oldpage2.html /newpage2.html [R=301,L]
RewriteRule ^/oldpage2.html /newpage2.html [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/%{REQUEST_URI} [R=301,L]
I didn't find useful examples or clear help on that.
Any help there?
[edited by: jrosell at 12:20 pm (utc) on Feb 27, 2012]