[resolved] Hiding the page's URL for an add-on domain (4 posts)

  1. alangreco
    Posted 4 years ago #

    I have a WordPress site that's set up as an add-on domain to my main site. It has its own URL and when you visit the WordPress home page it displays that URL accurately, like "wp_site.com". Visiting any pages within the WordPress site however shows my main site, then the WordPress site in the URL: "www.mainsite.com/wp_site.com/contact" for example. Then if I use the "go to previous page" arrow even the WordPress homepage shows "www.mainsite.com/wp_site.com". The main site is supposed to be anonymous.

    I tried resetting the site address, directing it specifically to the add-on domain address and it came up as "not found" and crashed, requiring me to reinstall WordPress.

    Is there a way to either substitute the URL that displays, or simply not show one?

  2. Abhishek Ghosh
    Posted 4 years ago #

    Is it cPanel's "add-on domain" ?

    Kindly understand WordPress itself has nothing to do with it. Its a wrong set up.

    You can try to redirect www.mainsite.com/wp_site.com/ to wp_site.com on www.mainsite.com 's .htaccess treating it like a subfolder.

    Resources :



  3. alangreco
    Posted 4 years ago #

    It is, in fact, a cpanel add-on domain. I'll try what you suggest, but I'll want to back it up first. The last time I messed with it I lost everything and had to start over.

    Thank you for your help.


  4. alangreco
    Posted 4 years ago #

    Apparently I had set up WordPress to find the subfolder rather than the intended add-on domain.

    The problem with these computers is that they always do EXACTLY what we tell them.

    Thanks for your guidance. It certainly pointed me in the right direction.

Topic Closed

This topic has been closed to new replies.

About this Topic