RewriteEngine on

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^faqs.html$  faqs.php [nc,l,QSA]
RewriteRule ^fleets.html$  fleets.php  [nc,l,QSA]
RewriteRule ^request-quote.html$  request-quote.php [nc,l,QSA]
RewriteRule ^blog.html$  blog.php  [nc,l,QSA]
RewriteRule ^about-us.html$  about-us.php  [nc,l,QSA]
RewriteRule ^contact-us.html$  contact-us.php  [nc,l,QSA]
RewriteRule ^sitemap.html$  site-map.php  [nc,l,QSA]

RewriteRule ^blog/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  blog-list.php?btitle=$1 [nc,l,QSA]
RewriteRule ^category/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  blog.php?catname=$1 [nc,l,QSA]

RewriteRule ^state/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  static-pages.php?postname=$1 [nc,l,QSA]
RewriteRule ^city/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  serving-city.php?postname=$1&scid=$2 [nc,l,QSA]
RewriteRule ^services/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  serving-city.php?postname=$1 [nc,l,QSA]

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
# CSS
ExpiresByType text/css "access plus 1 week"
# Javascript
ExpiresByType application/javascript "access plus 1 week"
</IfModule>

# 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
