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
Embeddable Google Document Viewer For Websites
Viewed 657 times since Fri, Mar 11, 2011
Coming Soon Template
Viewed 693 times since Thu, Nov 12, 2009
Free Android GUI PSD File
Viewed 923 times since Fri, Dec 4, 2009
Google Web Toolkit - Version 2 Released
Viewed 703 times since Tue, Dec 15, 2009
Review of Mobile Web Application Frameworks
Viewed 950 times since Mon, May 9, 2011
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 925 times since Thu, Feb 4, 2010
PHP Quiz Questions and Answers
Viewed 2048 times since Mon, Jan 11, 2010
AeroSQL - Web Based MySQL Management
Viewed 742 times since Wed, Feb 24, 2010
Stylish Cross-Browser CSS Buttons - Simply-Buttons v2
Viewed 698 times since Thu, Nov 12, 2009
Facebook Style Chat Script - ArrowChat
Viewed 714 times since Tue, Aug 3, 2010