• rickg17

    (@rickg17)


    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 form http://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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rickg17

    (@rickg17)

    More info. I nuked the imported database and let WP do a clean install. Created 2 pages, linked one to the ABout page…. same thing.

    esmi

    (@esmi)

    You can’t use relative urls in WordPress. Stick to full, absolute, urls.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP links not picking up siteurl variable…’ is closed to new replies.