301 Redirection using .htaccess File

by sabitha 2012-06-07 14:49:12

301 Redirection using .htaccess File


Redirect Particular Page Using 301
If you want to redirect only some of the pages to be redirected to other page using 301 redirection then you can check below methods.

#Method 1
Redirect 301 /oldpage.html http://newsite.com/newpage.html

#Method 2
RewriteRule ^oldpage.html$ http://newsite.com/newpage.html [R=301]



Redirect Whole Site Using 301
If you are moving to new website and want all your visitor of old site being redirected to new site then here is the code for you.

#Method 1
Redirect 301 / http://newsite.com/

#Method 2
RewriteRule ^(.*)$ http://newsite.com/$1 [R=301,L]
534
like
0
dislike
0
mail
flag

You must LOGIN to add comments