Answers for "convert http to https htaccess"

0

force http to https htaccess

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 

# BEGIN WordPress# The directives (lines) between `BEGIN WordPress` and `END WordPress` are# dynamically generated, and should only be modified via WordPress filters.# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Posted by: Guest on May-30-2020
0

force http to https htaccess

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,NE]
Posted by: Guest on May-30-2020

Code answers related to "convert http to https htaccess"

Browse Popular Code Answers by Language