Forum Discussion
Multisite Wordpress on Azure.
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
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