Multiple Domains, same WordPress Install, Path Issues
-
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.comThat’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 htmlI hope I’m clear and this makes sense. If not, please let me know what clarifications are needed. Thanks!
- The topic ‘Multiple Domains, same WordPress Install, Path Issues’ is closed to new replies.