Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2017
    Location
    Delhi
    Posts
    177

    How to redirect same doamin website to new one?

    Hello Friends,
    I have a Website 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

  2. #2
    Senior Member
    Join Date
    May 2015
    Location
    UK
    Posts
    260
    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]

  3. #3
    Senior Member
    Join Date
    Mar 2017
    Location
    Delhi
    Posts
    177
    Quote Originally Posted by sanjalisharma89 View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.