siteurl containing port number
-
I tried installing via fsockopen. After installation, the siteurl isn’t correct (https://www.example.com:80). And only the admin backend is working. If i try https://www.example.com in a Browser: Too many redirects. As soon as i remove :80 it works.
I think the issue is caused by the function wp_guess_url:
$url = preg_replace( ‘#/(wp-admin/.*|wp-login.php)#i’, ”, $schema . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] );
shouldn’t that be SERVER_NAME instead of HTTP_HOST? Or another preg_replace expression?
(https://stackoverflow.com/questions/2297403/http-host-vs-server-name)
- The topic ‘siteurl containing port number’ is closed to new replies.