Jump to content

Removing port 80 from URLS


Nellic17

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.