Skip to content

Commit

Permalink
SSL change
Browse files Browse the repository at this point in the history
  • Loading branch information
Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram committed Jun 17, 2019
1 parent 3ad62c5 commit 3249e26
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions html/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ RewriteEngine On
RewriteRule .* - [F]
</If>

RewriteCond %{HTTP_HOST} ^www.alquran.cloud$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} ^www.alquran.cloud$ [OR]
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L]
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

0 comments on commit 3249e26

Please sign in to comment.