http --> https

New to mod_rewrite? This is a good place to start.

http --> https

Postby nitrohuffer2001 » Fri Nov 18, 2005 3:48 pm

I know this has been gone over many times but after reading all of the posts I am still retarded. I just need http://mysite.net/ to go to https://mysite.net..here is what I have:

httpd.conf
<Directory />
Options FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} !443$
RewriteRule ^(.*)$ https://mysite.net/asset_devel/checkout/$1 [R=301,L]
AllowOverride None
</Directory>

and I do have a virthost container for this site as well:

<VirtualHost *:80>
DocumentRoot /var/www/html/asset_devel/checkout
ServerName mysite.net
</VirtualHost>

I restart apache and it doesnt complain but nothing happens? Thank you in advance for your help.
nitrohuffer2001
 
Posts: 1
Joined: Fri Nov 18, 2005 3:42 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

cron