redirect old domain to new domain

Jump to: navigation, search

To redirect old site to new, create .htaccess file with following content and upload to old web site.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)$1 [R=301,L]

New Web Site with Different URL Structure

In this case, we will redirect all web pages on old server to main page of new web site. We can redirect each url of old web site to new web site, but that will take time. Here is lazy solution

RewriteEngine on
RewriteRule ^$ [R=301,L]
RewriteRule (.*)$1 [R=301,L]