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 ? Link to comment https://forums.phpfreaks.com/topic/178592-http-redirect-https/ 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] Link to comment https://forums.phpfreaks.com/topic/178592-http-redirect-https/#findComment-942053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.