PDA

View Full Version : How to redirect same doamin website to new one?



OPI
03-30-2017, 06:22 AM
Hello Friends,
I have a Website onlinepromotionuae.ae (http://www.onlinepromotionuae.ae) but from last two months there is some errors were occurred and the backup files were crashed so i re-design my Website again and use the same domain name and delete the old website from the server. But the problem is there the webpages are shown on google those are from the old website.
So please help me how to resolve this issue. And google Webmasters also give the report of the old website's indexed pages.
Regard:
OPI

sanjalisharma89
03-30-2017, 06:33 AM
The first option will show all of the same content on one URL as you would another. For example, if you just changed your domain to DomainB.com, but you still have plenty of visitors coming to DomainA.com, you would use this to show them all of the existing content that is located on the new domain, without the need to update both websites.

To do this, you would modify your .htaccess file for the domain that your users will go to, and insert these lines of code:

RewriteCond %{HTTP_HOST} ^DomainA.com
RewriteRule ^(.*) http://DomainB.com/$1 [P]

OPI
03-30-2017, 06:41 AM
The first option will show all of the same content on one URL as you would another. For example, if you just changed your domain to DomainB.com, but you still have plenty of visitors coming to DomainA.com, you would use this to show them all of the existing content that is located on the new domain, without the need to update both websites.

To do this, you would modify your .htaccess file for the domain that your users will go to, and insert these lines of code:

RewriteCond %{HTTP_HOST} ^DomainA.com
RewriteRule ^(.*) http://DomainB.com/$1 [P]

Thank you for your help but i already deleted the old website and using the same domain for the new one because that website is well promoted