WP links not picking up siteurl variable…
-
OK, this is odd. I’m moving a site from the staging server to its live server. We’ve not redirected the domain yet, so the live server URL is of the form: http://server.example.com/~client/ with WP installed at the root. I’ve set the siteurl and home to match that (that is, to be http://server.example.com/~client/) and the links generated by wp_page_menu, etc all work fine.
Here’s the issue – internal links in the page copy are of the form
/somepage/
or/?page_id=9
which SHOULD pickup the value in siteurl and generate a link of the formhttp://server.example.com/~client/?page_id=9
– but instead, the links generated are of the form http://server.example.com/?page_id=9, i.e. the ~client part is missing. Obviously, this isn’t the right link and a 404 results.I get that this shouldn’t be an issue once we redirect the DNS, but it is now, the client’s nervous and I’m puzzled. Any thoughts?
- The topic ‘WP links not picking up siteurl variable…’ is closed to new replies.