Nellic17 Posted January 21, 2017 Share Posted January 21, 2017 Hello everyone, I'm using a script which when accessing the script via HTTPS, :80 is attacked to the base url, it takes the HTTPS port as 80. HTTPS port is almost always 443, so when accessing the site with https:80 is added to the url and the page won't open. Please is there anyhow I can rewrite all https base url ending with :80 to one without port 80? Please someone should help out. Am not the writer of the script. Quote Link to comment https://forums.phpfreaks.com/topic/302999-removing-port-80-from-urls/ Share on other sites More sharing options...
Jacques1 Posted January 22, 2017 Share Posted January 22, 2017 Please is there anyhow I can rewrite all https base url ending with :80 to one without port 80? No, because when the browser accesses the URL “https://yoursite.com:80/”, then it actually tries to connect to your server over TLS on port 80. If your server doesn't support TLS on port 80, the connection immediately fails. The Apache rewrite engine cannot do anything about that. It cannot travel back in time. You have to fix the application. Find out which component adds port 80 to the URLs and change that. The port shouldn't be there anyway. Quote Link to comment https://forums.phpfreaks.com/topic/302999-removing-port-80-from-urls/#findComment-1541844 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.