# ErrorDocument 404 https://samargrand.in/404.php
# Force from http to https
RewriteEngine On
# RewriteCond %{HTTPS} !=on
# RewriteRule ^/?(..*) https://%{SERVER_NAME}/$1 [R,L]
# RewriteCond %{HTTP_HOST} ^samargrand.in/ [NC]
# RewriteRule ^(.*)$ http://www.samargrand.in/$1 [L,R=301]
# RewriteRule ^ /%1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php($|\ |\?)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^blog/([a-zA-Z0-9-/]+).html$ blog-detail.php?title=$1
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^samargrand\.in$ [OR]
RewriteCond %{HTTP_HOST} ^www\.samargrand\.in$
RewriteRule ^/?$ "https\:\/\/samargrand\.in\/" [R=301,L]
