Ninjakreborn Posted July 17, 2006 Share Posted July 17, 2006 <IfModule mod_rewrite.c>RewriteEngine onRewriteBase /RewriteCond %{HTTPS} != onRewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=permanent]</IfModule>I am trying to do a mod rewrite but it's not working, it's giving me a 500 server error, it should redirrect to https when someone tries to visit the site, am I doing something wrong. Quote Link to comment https://forums.phpfreaks.com/topic/14884-mod-rewrite-https-redirect/ Share on other sites More sharing options...
hitman6003 Posted July 18, 2006 Share Posted July 18, 2006 http://www.google.com/search?hl=en&q=.htaccess+redirect&btnG=Google+SearchYou could probably click on any one of those links and get an easier answer. I'm not sure if mod_rewrite will do a redirect anyway...I think it will just rename the url, making someone think they are at a secure site...which is not a good practice. Quote Link to comment https://forums.phpfreaks.com/topic/14884-mod-rewrite-https-redirect/#findComment-59719 Share on other sites More sharing options...
TEENFRONT Posted July 18, 2006 Share Posted July 18, 2006 Yeah the mod rewrite on rewrites the URL. It doesnt look like hes trying to decieve his users, it looks likes heys checkjing that there on a https page, then if then redirect them.You want a simple redirect. Quote Link to comment https://forums.phpfreaks.com/topic/14884-mod-rewrite-https-redirect/#findComment-59724 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.