Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

mod rewrite https redirect

Recommended Posts

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} != on
RewriteRule ^.*$ 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.

Share this post


Link to post
Share on other sites
http://www.google.com/search?hl=en&q=.htaccess+redirect&btnG=Google+Search

You 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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.