Is it possible to remove the port number from the url? I.e., I access the website by mywebsite.com but when I click something else in the page, it adds :8080 right between the domain name and the current page, so it will be smth like mywebsite.com:8080/flags. and I want to just hide this port number part from the URL.

After some research I could only find tutorials and help about removing or changing ports or redirections, etc.

Maybe it is possible somewhere from the admin panel?


I found out that I have to set port_in_redirect to off, in some server block, which is...? (info here)

1 Answer 1


Go to System->Configuration->Web->Unsecure and check the values for Base URL and Base Link URL. remove any trace of :8080 that you find in there.

Do the same for the Secure section.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.