HI, how can i do 301 redirect for HTML pages suppose i have pages: /dir.com and i want to redirect /vir.com, so how can i do????????
Open notepad and save it as .htaccess in yer root directory. Put the redirect code in a notepad and save it in your root directory, as .htaccess (name it .htaccess) (close the spaces in the url, I made the spaces on purpose to make the post and they are of no use to you) Good Luck
Depending on your hosting provider, you should be able to go to your CPanel and redirect your website from there.
Yes, 301 is the best way to tell Search Engine bot that which file is moving or removing. you can use that code which shared by sherone Cheers,
A 301 redirect is the best way of telling a search engine that this domain has been permanently moved to the new domain name. This also reduces your chances of having duplicate content. I suggest using the "www" version "non-www". Here is how to transfer your "non-www" version to the "www" version of your website: RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite\.com [NC] RewriteRule (.*) http://www.mysite.com/$1 [L,R=301] Create a .htaccess file containing the above code, and place that file in your website's root folder. I hope I helped you out. If you have more questions, don't be shy to ask.