How to redirect an old domain to a new domain using htaccess?
Article ID: 393 | Rating: 5/5 from 1 votes | Last Updated: Sun, Mar 14, 2010 at 4:15 PM
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
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.
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
How do I setup and use SSH?
Viewed 1254 times since Thu, Oct 15, 2009
Plupload - Multiple Files Upload Script
Viewed 1091 times since Tue, Feb 9, 2010
PHP Questions for Interview with Answers
Viewed 1087 times since Wed, Feb 24, 2010
Google Maps jQuery Plugin
Viewed 846 times since Thu, Jan 7, 2010