
# Canonical https/www
<IfModule mod_rewrite.c>
	RewriteCond %{HTTPS} off
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
	
	RewriteCond %{HTTP_HOST} !^www\. [NC]
	RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
	
	RewriteRule ^blog\/(.+)/$ /blog/$1 [L,R=301]

	RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} .*/([^/]+)?  [NC]
    # RewriteRule .*  blog/viewPost.php?postID=%1   [L]
    RewriteRule ^blog/(.*)$  blog/viewPost.php?postID=%1   [L]
    
    RewriteRule ^locations/([A-Za-z0-9-\+]+)/([A-Za-z0-9-\+]+)/areas/([A-Za-z0-9-\+]+)?$ /locations/$1/$2/areas/area.php?id=$3 [L]
    RewriteRule ^region/([A-Za-z0-9-\+]+)?$ /region/region.php?id=$1 [L]
</IfModule>

# 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
