You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The give_get_current_page_url() function is not working correctly on all nginx configurations. I use a name-based virtual hosting environment with nginx:
For now i fixed it by adding this to the wp-config.php file:
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
The text was updated successfully, but these errors were encountered:
remcotolsma
changed the title
Bug give_get_current_page_url()$_SERVER["SERVER_NAME"]
Bug give_get_current_page_url() $_SERVER["SERVER_NAME"]
Mar 16, 2016
The
give_get_current_page_url()
function is not working correctly on allnginx
configurations. I use a name-based virtual hosting environment withnginx
:http://bneijt.nl/blog/post/name-based-virtual-hosting-with-nginx/
The value of
$_SERVER['SERVER_NAME']
is:This is causing all kind of issues, I think you should use
$_SERVER['HTTP_HOST']
:For now i fixed it by adding this to the
wp-config.php
file:The text was updated successfully, but these errors were encountered: