I have a question related to Apache on FC5. I run everything over SSL. I access my server at:
I have various sites within it. My server also answers to:
I would like to rewrite anything coming into:
to:
https://myserver.domain.com/maint.html
Is this easy? Any tips?
Tom
On 3/22/06, Tom Spec samag70-ignore@yahoo.ca wrote:
I have a question related to Apache on FC5. I run everything over SSL. I access my server at:
I have various sites within it. My server also answers to:
I would like to rewrite anything coming into:
to:
https://myserver.domain.com/maint.html
Is this easy? Any tips?
Tom
Hi
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>
Hope this helps
Dan
"Dan Track" dan.track@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