I have the following problem.
I configured the htaccess file so that all requests are redirected to use ssl (https). I have just installed Tomcat on the server and I needed to "ignore" the redirect in case of port 8080 access (tomcat default port), 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 by the browser on port 8080 "my.hostname.com:8080" it rewrites the URL to " link "I would like that in this specific case there was no change or when I accessed" my.hostname.com.br:8080 "just go to" link " Normally.
How do I proceed?