[Snippet] Redirecting Non-SSL Traffic to SSL
Posted on June 15, 2010
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Related posts
- Redirecting non-www to a www prefix
This old chestnut again. Create or edit the .htaccess file... - Redirect a www prefixed site to a non-www prefix
I like clean URLs. Add this to your .htaccess in the site root RewriteEngine on... - Apache redirects based on IP Address/Subnet
Ever needed to redirect a source IP address or source subnet in apache? Why? Redirect... - .htaccess redirect based on requested domain
Imagine you have a selection of domain names that point to the same site, are... - mod_geoip Revisted including stopping spam in phpBB 2
I've recently moved a client's forum onto a new cPanel server, previously it was on...



