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
10 Most Popular JavaScript Frameworks
Viewed 1328 times since Thu, Jul 8, 2010
Web Form Elements in PSD Format
Viewed 1242 times since Sun, Dec 27, 2009
AeroSQL - Web Based MySQL Management
Viewed 1381 times since Wed, Feb 24, 2010
mbSlider - Highly Customizable Content Slider
Viewed 1202 times since Mon, Jul 26, 2010
Google Maps jQuery Plugin - gMap
Viewed 1592 times since Mon, Feb 8, 2010
Tiny Flash MP3 Audio Player
Viewed 1190 times since Wed, Jan 6, 2010
What is new in HTML 5?
Viewed 1281 times since Sat, Apr 3, 2010
Open Source WYSIWYG Editor
Viewed 1526 times since Thu, Jan 7, 2010