Home :: Blog :: Articles :: Web-Hosting :: How to Redirect an old domain to a new domain using htaccess

How to Redirect an old domain to a new domain using htaccess

How to Redirect an old domain to a new domain using htaccess
Category: Web-Hosting
Posted:
Views: 1321
Comments: 0 [Post]
Synopsis: Using htaccess file you can redirect a old domain name to a new domain

Using htaccess file you can redirect a old domain name to a new domain

# redirect from old domain to new domain
RewriteEngine On
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]


Comments on How to Redirect an old domain to a new domain using htaccess

Start the conversation by being the first to comment!

Share comments

Your Name: *
Comments: *
Please Note: HTML Markup will be automatically removed.
The ability to post urls has been disabled by the site administrator.
*
Type the characters you see in the picture:

*