• Hi there,

    By default wordpress generates hard href with the url provided in setting/genral.

    This is a problem because you can’t use wordpress with a reverse proxy.

    Is there a way to force wordpress to generate href such as href=/url
    instead of href=https://web/url

    Thanks in advance

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

    (@jo1)

    Thank you Keith for your help.

    It’s a good start but it doesn’t work for me. I tried to unset $_SERVER[‘HTTP_HOST’] (because that’s what I need : to get href generated without server name)

    I tried with this at the latest line of wp-config.php :
    $_SERVER[‘HTTP_HOST’] = “”; => doesn’t work
    $_SERVER[‘HTTP_HOST’] = $_SERVER[”]; => doesn’t work

    I greped $_SERVER[‘HTTP_HOST’] to see where this varraible could be initialized. It is used and defined several times also by plugins.

    Is there a way to unset this variable on time for all ?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress and reverse proxy’ is closed to new replies.