Redirect Permanent and https
Posted
by
Clem
on Pro Webmasters
See other posts from Pro Webmasters
or by Clem
Published on 2012-04-24T12:26:43Z
Indexed on
2012/09/25
3:50 UTC
Read the original article
Hit count: 339
I just set up https on my server, and I have an issue with redirect permanent.
If I have a link for example http://domain.com/index.html it redirect me on
https://www.domain.comindex.html
The / is missing and I can't figure out how to fix it.
It's work with http://www.domain.com/index.html
Here is my httpd.conf
<VirtualHost *:80>
ServerName domain.com
Redirect permanent / https://www.domain.com/
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain.com
Redirect permanent / https://www.domain.com/
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/domain/
ServerName www.domain.com
SSLEngine on
SSLCertificateFile ssl.crt
SSLCertificateKeyFile ssl.key
</VirtualHost>
© Pro Webmasters or respective owner