• I found some items on the forum that have similar issues, but not quite the same as mine. Hoping you can help…

    I rebuilt an existing website on WordPress for a client. I built the site on a new domain with a static IP address so the customer’s existing site could keep running. He had two domains for the existing site, both displaying the exact same contact. I have now just updated DNS to point to Bluehost’s nameservers and added the two domains to my Bluehost domains setup. They are both “parked domains” which means they point to the same webpages (this is not multi-site, it is single site multipel domains).

    New site domain I used to build out on WP: https://www.fortalezanow.com
    Static IP: 173.254.37.81
    This is currently also the “WordPress Address (URL)” in General Settings in my WordPress setup: https://173.254.37.81
    Customer Domain A: https://www.investinfortaleza.com
    Customer Domain B: https://www.escalaproperties.com

    That’s all fine. The problem is that the out of the box behavior for WordPress – which I want to keep in place for the customer as I hand him back this site to allow him to blog and make minor updates himself – is to use the WordPress URL for all permalinks and to do the full domain plus path to file for images inserted in pages and posts. This makes custom menus problematic because when the visitor is on investinfortaleza.com and clicks a menu item (“About Escala”), the URL location goes back to https://173.254.37.81/about-escala/ and not https://www.investinfortaleza.com/about-escala . The images being src=https://173.254.37.81/path to image isn’t as big a deal, but I’d like to use absolute paths without the domain if possible as well, in case we move hosts in future.

    – Make a change so that the pages/permalinks use the current domain (whatever of the 4 ways to access the site above – 173.254.37.81 , fortalezanow.com , investinfortaleza.com or escalaproperties.com) as the Site URL with the absolute path to file following that (i.e. permalink uses the absolute path and the domain is based on the domain the visitor is on when they visit)

    – Do the same so that the image uploads create code using the absolute path starting with /plus-dir-path/tofile.html so that the domain the visitor is on will show as the same domain in the source html

    I hope I’m clear and this makes sense. If not, please let me know what clarifications are needed. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You have multiple sites assigned to the same location. Only one of these can really use its own domain name. You can log in at https://173.254.37.81/wp-admin and go to Settings > General and set your site and home URL to be whatever domain you want to be used by your links.

    Again, only one domain can actually be used there. You can’t have 3 separate sites all using the same location, files, and database. They can all point to the same location, and all show the same site, but as soon as any link is clicked, whatever you have set in Settings > General will be used as the URL.

    If you want 3 separate sites, you would have to make three separate installs, then you could copy over themes and database from one to the others if desired.

    Thread Starter smersy

    (@smersy)

    Yes, I want multiple sites pointing at the same files/DB/Etc and it is possible and set up that way on Bluehost just fine. If I was using a non-Wordpress setup, I would simply code the site with absolute paths, you can defnitely have multiple domains using the same location. I don’t want separate sites.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple Domains, same WordPress Install, Path Issues’ is closed to new replies.