0
I have the following problem.
I have set up the htaccess file so that all requests are redirected to using ssl (https). So far everything worked correctly, but recently I installed Tomcat on the server and had to "ignore" the redirect in case of access by port 8080 (standard port of Tomcat), I modified the htaccess file as follows:
RewriteEngine On
# Redirect all HTTP traffic to HTTPS.
RewriteCond %{HTTPS} !=on
RewriteCond "%{SERVER_PORT}" "!^8080$"
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [L,NC,R]
# Send / to /roundcube.
RewriteRule ^/?$ /roundcube [L]
However, when trying to access the domain through the browser on port 8080 "my.hostname.com.br:8080" it rewrites the URL to "https://my.hostname.com.br:8080" I would like that in this specific case there was no change or when accessed "my.hostname.com.br:8080" just access "http://my.hostname.com.br:8080" normally.
How should I proceed?
Solution I found was to create a new domain
– Willian Tamagi