Mini Shell
RewriteEngine On
# Redirect /index to /
RewriteRule ^index$ / [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R=302,L,NE]
RewriteCond %{HTTP_HOST} ^www\.bdskirpanfactory\.com [NC]
RewriteRule ^(.*)$ https://bdskirpanfactory.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-1
RewriteRule ^blogs/([^/\.]+) blog.php?url=$1
# RewriteRule ^find-doctor/([^/\.]+) find-doctor.php?url_doctor=$1
RewriteRule ^shop/([^/\.]+) product.php?url=$1
RewriteRule ^category/([^/\.]+) shop.php?url=$1
# RewriteRule ^category/([^/\.]+) shop.php?category=$1
# RewriteRule ^category/([^/]+)/([^/]+)$ find-doctor.php?id=$1&location=$2 [L]
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit