Home » Categories » Business » Web Development

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 ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

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

Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
IE6 CSS Fixer - Web-Based IE6 CSS Fix Tool
Viewed 965 times since Thu, Dec 31, 2009
Easy Slider jQuery Plugin - Easy Image or Content Slider
Viewed 2723 times since Tue, Jan 12, 2010
How to password protect folder/files using htaccess file?
Viewed 545 times since Sun, Mar 14, 2010
8 Basics of Regular Expressions
Viewed 458 times since Mon, Mar 8, 2010
SEO (Search Engine Optimization) vs SEM(Search Engine Marketing)
Viewed 455 times since Mon, Jul 12, 2010
How To Eat Healthy During Your Next Camping Trip
Viewed 498 times since Mon, Jul 4, 2011
ProFolio - Instantly Create Free Portfolio Website
Viewed 2155 times since Sun, Jan 3, 2010
Constantin Pinnau
Viewed 324 times since Wed, Nov 24, 2010
jqPlot - jQuery Charts & Plotting Plugin
Viewed 2026 times since Sat, Jan 9, 2010