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.

5 (1)
Article Rating (1 Votes)
Rate this article
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
What is new in HTML 5?
Viewed 1241 times since Sat, Apr 3, 2010
jqPlot - jQuery Charts & Plotting Plugin
Viewed 1562 times since Sat, Jan 9, 2010
Ajaxed MySQL Table Editor
Viewed 1487 times since Tue, Oct 13, 2009
jCart - Free PHP AJAX Shopping Cart
Viewed 1525 times since Sun, Jan 3, 2010
ValidForm Builder - Creating Forms With Validation
Viewed 1138 times since Wed, Apr 21, 2010
Google Maps jQuery Plugin - gMap
Viewed 1537 times since Mon, Feb 8, 2010
Viewed 1145 times since Sun, Jan 17, 2010
10 Most Popular JavaScript Frameworks
Viewed 1257 times since Thu, Jul 8, 2010
Search Engine Optimization: Tags of Importance for SEO
Viewed 1149 times since Tue, Oct 12, 2010
jQuery Dropdown Check List
Viewed 1547 times since Thu, Jan 14, 2010