Forum Discussion
Hogstad_Raadgivning
Apr 15, 2017Steel Contributor
Multisite Wordpress on Azure.
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...
Viktor Gilbertsson
Apr 18, 2017Copper Contributor
Hi,
I am assuming you are using the virtual machine based solution. In this case, go first to your public IP address resource and under configuration you can change to static assignment. This will ensure that you always get the same IP. Then you just create a regular A-record in your DNS to that IP.
Normally you need to change inside of wordpress as well.
Best regards
I am assuming you are using the virtual machine based solution. In this case, go first to your public IP address resource and under configuration you can change to static assignment. This will ensure that you always get the same IP. Then you just create a regular A-record in your DNS to that IP.
Normally you need to change inside of wordpress as well.
Best regards
Hogstad_Raadgivning
May 02, 2017Steel Contributor
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
- Andrew TaylorJan 30, 2018Copper Contributor
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 https://developer.wordpress.org/cli/commands/search-replace/ that makes this really easy and keeps serialized data properly formatted.
You can also https://codex.wordpress.org/Changing_The_Site_URL#Edit_wp-config.php 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