Now I want to share how to redirect the page via 301 redirects using Apache's htaccess. As we know 301 redirect is Search Engine Friendly method for web page redirection. And this is not much difficult to implement and will conserve your search engine rankings as well.If anyone want to re-direct the old page to new page or website You should have a redirect in place if your old link structure varies from the new one. This will help you maintain you search engine rankings and decrease the possibility if someone reaching a 404 page.
For example:
When someone tries to access your website without the (www); It will redirect the URL to your website with the www. So, we should stick with one pattern because accessing your website both ways is not good in SEO (Search Engine Optimization) of view. Google will treat as duplication. To avoid the errors and make the process SEO friendly, we have to implement 301 redirect for your website,
Follow these instructions:
1. Open up notepad or any other text editor and copy and paste the commands below.
2. Change (yourdomain) to your domain name.
3. Save the file with this name: (.htaccess).
4. Upload it to the root directory of your website.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
Read More...