I'm starting wordpress development, and learning the platform. Now I'm stuck with a strange issue. I have created a virtual host configuration that works as expected. I'm using xip.io for dns resolution, that also works as expected I can access wordpress application from other devices.
The thing that puzzles me is that if I define WP_HOMEURL and WP_SITEURL variables to the same values that are set via admin->options -> general settings the whole thing breaks. Nothing works anymore, I have to go directly to the database to reset site_url field.
The virtual host file
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org_dot_com DocumentRoot "C:/server/wp/wordpress" ServerName theme.local ServerAlias local.22.214.171.124.xip.io ErrorLog "logs/test1.com-error.log" CustomLog "logs/test1.example.com-access.log" common </VirtualHost>
Settings in the admin UI
WordPress Address (URL) : http://local.126.96.36.199.xip.io Site Address (URL) : http://local.188.8.131.52.xip.io
I thought that those values are the same, and that it makes no difference how you define them (
wp-config.php or via admin interface)?
Obviusly I'm doing something wrong, but I can't see what is it.