<Files ".htaccess">
order allow,deny
deny from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^([^./]+)/([^./]+)/([^./]+)$ detail.php?main=$1&sub=$2&pid=$3
RewriteRule ^Page/([^./]+)$ page.php?Id=$1
RewriteRule ^([^./]+)$ products.php?main=$1
RewriteRule ^([^./]+)/([^./]+)$ products.php?main=$1&sub=$2
RewriteRule ^([^./]+)/([^./]+)/p/([^./]+)$ products.php?main=$1&sub=$2&cur=$3
RewriteRule ^([^./]+)/p/([^./]+)$ products.php?main=$1&cur=$2&p=$3
RewriteRule ^([^./]+)/([^./]+)/p/([^./]+)$ products.php?main=$1&sub=$2&cur=$3&p=$4

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
