Hi, I changed site url recently but I don't want to lose the SE traffic. So I wonder how can I redirect all the old indexed url to the new site. For example: www.xyz.com/d28-0?.pjh8784 -------> www.abc.com Thank you for your help.
User redirection via .htaccess with mod_rewrite this way RewriteEngine on RewriteCond %{HTTP_HOST} ^xyz.com/d28-0?.pjh8784$ [OR] RewriteCond %{HTTP_HOST} ^www.xyz.com/d28-0?.pjh8784$ RewriteRule ^(.*)$ http://www.abc.com [R=301,L] Code (markup): or simple redirect: Redirect 301 /d28-0?.pjh8784 http://www.abc.com Code (markup):
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^(.*)$ http://www.domain.com/$1/ [R=301,L]