Hi,
I have inherited a vhosts .conf file listed below. It was already doing a rewrite http to https which was working fine. I have added the line in red (and several variations of the same thing), which should be redirecting from an index.html page on root to a folder common/. After the update i run a graceful restart. The redirect did not work although the http to https still works. Grateful for any help or suggestions as to where I am going wrong.
Thanks
Mathew
<VirtualHost *:80>
ServerName myservernamehere.com
DocumentRoot /var/www/html
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
RewriteEngine On
RewriteRule 302 /index.html /common/
RewriteCond %{HTTPS} off
RewriteRule /(.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

Reply With Quote
