RewriteEngine On
RewriteCond %{HTTP_HOST} ^countryish\.co.in [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.countryish.co.in/$1 [R,L]

RewriteCond %{THE_REQUEST} ^.*/index.php 
RewriteRule ^(.*)index.php$ https://www.countryish.co.in/$1 [R=301,L] 

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.countryish.co.in/$1 [L,R=301]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.countryish.co.in/$1 [L,R=301] 

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.)$ https://www.countryish.co.in/$1 [R,L]

# product with category
RewriteRule ^productsList/([^/]+)/?$ products.php?cat=$1 [NC,L,QSA]

# product with category with page
RewriteRule ^productsList/([^/]+)/([^/]+)/?$ products.php?cat=$1&page=$2 [NC,L,QSA]

# product with subcategory
RewriteRule ^productsSubList/([^/]+)/?$ products.php?scat=$1 [NC,L,QSA]
# product with subcategory with page
RewriteRule ^productsSubList/([^/]+)/([^/]+)/?$ products.php?scat=$1&page=$2 [NC,L,QSA]

# product detail
RewriteRule ^details/([^/]+)/?$ product-details.php?url=$1 [NC,L,QSA]
