httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Roy <>
Subject [users@httpd] Rewrite rule redirection from http to https does not work.
Date Fri, 03 May 2013 03:16:50 GMT
Hi Guys,

My configuration is Apache/2.2.23 on CentOS x86_64, running Subversion
server. Recently I installed SSL certificates and I want to redirect all
request comming to to be
redirected to automatically.
This configuration is applicable to whole server, I'm not using VirtualHost
in my httpd.conf, I have following rule in my httpd.conf but it does not

RewriteEngine On
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

Call to directly works fine.
I tried several permutation and combinations but it does not work, looks
like i'm missing something obivious..

Any help on this is appreciated.


View raw message