1
I need to redirect subdomain.example.com -> subdomain.example.com:32400/web
My current htaccess is:
Options -MultiViews +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain.example.com [NC]
RewriteRule (.*) http://subdomain.example.com:32400/web [R=301,L]
AuthUserFile /var/.htpasswd
AuthName Welcome
AuthType Basic
require user someone
IndexOptions +ShowForbidden
ErrorDocument 401 /error401.html
ErrorDocument 404 /errorGeneric.html
ErrorDocument 500 /errorGeneric.html
However I keep getting 500 Internal Server errors with the redirect enabled, if the redirect is not active then the .htaccess works fine
If you get 500 errors, check the Apache HTTPD log file and see what the error was. – Der Hochstapler – 2014-04-01T12:46:45.427