Apr 15 2017 03:50 AM
Hi,
I have installed Bitnami multisiste Wordpress on Azure. The site is working when I use the IP-adress I was given on the installation. But I need to combine that IP-adress with the domain-name I like to use.
I can nit find where I do this. On the Azure portal, or my Wordpress site.
Any suggestions?
Best regards
- Geir
Apr 18 2017 12:22 AM
May 02 2017 01:05 AM
Hi Viktor,
You are right. I do use the Virtual Machine.
I havde added the IP adress from Azure to my domain. And my domain direct to the right site.
My problem is that the IP-adress shows up in the URL, not my siteadress.
Also when I try to add a new site on the mulitite the adress is with the IPadress at the end, and it does not work.
Do I need to change the name servers?
Attached is the picture from WP-multisite.
Best Regards
- Geir
Jan 29 2018 09:20 PM
Hi Geir,
WordPress stores references to the site URL in the database. Your best option is to replace instances of the IP address with your domain name in the database. WP-CLI has a search and replace command that makes this really easy and keeps serialized data properly formatted.
You can also edit wp-config.php to define WP_HOME and WP_SITEURL to overwrite the value in the database with the correct URL. However, search and replace is the best practice as it will update links, media, and other references as well.
Hope this helps.
- Andrew