I need to redirect to folders from port 80 to 8080 1. Default index to /somename 2. /admin to /somename
I tried a .htaccess to
RewriteEngine on
Redirect / http://example.com:8080/somename
Redirect /admin http://example.com:8080/someAdmin
But i'm running JSP so the folder name i used is someAdmin (note A uppercase) It's impossible for me to change the path in my code (sorry about it)
Problem So because of this i'm getting error page (CASE sEnSiTive) redirection (Automatically it converts to small case in browser)
AddOn I'll be happy if it .htaccess could mask 8080 port from user via reverse proxy.
RewriteEngine on
RewriteCond %{SERVER_PORT} !^8080$
RewriteRule ^(.*) http://%{SERVER_NAME}:8080/somefolder%{REQUEST_URI}
Redirect /admin http://%{SERVER_NAME}:8080/someAdmin