I have some duplicated pages like: link 1: http://www.domain.com/OldPage-par1aaa-par2bbb.html link 2: http://www.domain.com/NewPage-par1aaa-par2bbb.html And I want in the htaccess file to permanently redirect (301) link1 to link2 someone can help me?
Redirect the whole thing using PHP <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?> PHP: .htaccess Redirect 301 /oldpage.html http://www.example.com/newpage.html Code (markup):
I can´t, I have a lot of urls and par1/par 2 are paremeters so they change : old links: http://www.domain.com/OldPage-par1aaa-par2bbb.html http://www.domain.com/OldPage-par1cccc.html http://www.domain.com/OldPage-par1dd-par2eeee.html ..... and so on new links: http://www.domain.com/NewPage-par1aaa-par2bbb.html http://www.domain.com/NewPage-par1cccc.html http://www.domain.com/NewPage-par1dd-par2eeee.html help