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 3249e26 commit c15c822
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions html/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ RewriteEngine On
RewriteRule .* - [F]
</If>

#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 %{HTTP_HOST} ^www.alquran.cloud$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

0 comments on commit c15c822

Please sign in to comment.