Article Diary - General Knowledge Digest

How to redirect an old domain to a new domain using htaccess?

You can redirect an old domain name to the new domain using htaccess file. This uses the 301 redirection that is SEO friendly.

# redirect from old domain to new domain

RewriteEngine On
RewriteRule ^(.*)$$1 [R=301,L]

Put this code in your .htaccess file to redirect an old domain name to new domain name.

Attached Files
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
UI Patterns - User Interface Design Pattern Library
Viewed 1045 times since Thu, Dec 31, 2009
Easy Slider jQuery Plugin - Easy Image or Content Slider
Viewed 1234 times since Tue, Jan 12, 2010
Search Engine Optimization: Tags of Importance for SEO
Viewed 908 times since Tue, Oct 12, 2010
Web Application Security Tools & Scanner Applications
Viewed 1281 times since Mon, Mar 22, 2010
dygraphs JS Charts - Free JavaScript Charts
Viewed 913 times since Sun, Dec 13, 2009
Free JavaScript Charts Library - JS Charts
Viewed 936 times since Sun, Dec 13, 2009
Pastie - Pastebin to Share Source Code with Syntax Highlighting
Viewed 946 times since Mon, Jan 11, 2010