Posted in
2
1:20 am, July 31, 2019
apache redirect to https ssl from normal
good if you have apache and access to
htaccess
file to redirect requests to https version of the site. this one also includes a rewrite to index.php so if you don't need this remove the last line.RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [L]
View Statistics
This Week
27
This Month
129
This Year
0
Add Comment
Other Items in apache
Related Search Terms
Other Categories in Code
c testing apache apps asp bat bootstrap bootstrap templates core css css grid design elements fancybox fonts foundation framework gimp git html icons ideas images javascript jquery js linux mac nginx node php php functions php simple html dom pi400 python react sections site bugs site documentation sql sqlite sublime svg templates tools virtual box webdev windows wordpress