Fedora Apache Rewriting

Ingemar Nilsson init at pdc.kth.se
Wed Apr 5 13:20:25 UTC 2006


"Dan Track" <dan.track at gmail.com> writes:

> You shouldn't use "domain.com" as that may exist you should use "example.com"
> 
> <VirtualHost myother.example.com>
> RewriteEngine on
> RewriteRule http://www.example.com/?(.*)?$
> https://myserver.example.com/maint.html
> </VirtualHost>

Is this the best method to use to redirect users from
http://www.example.com to https://www.example.com (notice the change from
http to https), or is there some better way?

Regards
Ingemar




More information about the fedora-list mailing list