netpumber Posted October 22, 2009 Share Posted October 22, 2009 Hallo!! I want to ask you something about redirection . I have a site eg. http://pop.homeserver.net and i have install the ssl protocol and make it work with apache. Now i want to make apache when someone visit http://pop.homeserver.net then automatically redirect him in https://pop.homeserver.net . Is there any way to make it ? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 22, 2009 Share Posted October 22, 2009 Using mod_rewrite, you can do this: RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.