Answer the question
In order to leave comments, you need to log in
How to remove site port from server response?
Good afternoon. There was such a problem:
The site has a redirect from http to https in the htaccess file (everything is as usual):
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Answer the question
In order to leave comments, you need to log in
For some reason, the developers in nginx made a redirect with the port when connecting to port 80. Problem solved :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question