• Hey gang.

    So. I’m tweaking some stuff on this custom wordpress site. I didn’t install or set it up, just fine tuning.

    For some reason, the site keeps showing up on a separate domain hosted under the same account.

    I tried copying the database to a new user specific database and changing the config file to match but the second domain follows it.

    I think the secondary site is just supposed to be parked.

    How do I keep the second domain from pulling up the other site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think this is a hosting issue – not a WordPress one. Check the details for the second domain in your hosting account management panel.

    I’d run a 301 redirect from the one you don’t want to show up to the one you do. Put it in your .htaccess file. Then when someone types in the other site (or arrives there) they will automatically be sent over to the one you want.

    RewriteEngine on
    rewritecond %{http_host} www.sweatissexy.com [nc]
    rewriterule ^(.*)$ https://www.megamace.com/$1 [r=301,nc]
    
    RewriteEngine on
    rewritecond %{http_host} sweatissexy.com [nc]
    rewriterule ^(.*)$ https://www.megamace.com/$1 [r=301,nc]
    Thread Starter chonigman

    (@chonigman)

    Yeah I think it is a hosting issue too. I usually find better info here than on the hosting forum, but I’ll guess I’ll try there too.

    The 301 redirect is a fine idea except my employers don’t want the second site to be connected to the first.

    Thanks for your help.

    If anyone else knows of anything that I could do please let me know.

    I don’t understand why the WordPress site would have installed to more than one domain.

    Blerg

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Site showing up on other locally hosted site’ is closed to new replies.