<FilesMatch ".(?:html|php)$">
SetHandler application/x-lsphp54
</FilesMatch>

RewriteEngine on

RewriteCond %{HTTP_HOST} ^bwilimousineservice.net [NC]

RewriteRule ^(.*)$ https://www.bwilimousineservice.net/$1 [L,R=301]


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

RewriteRule ^faqs.html$  faqs.php [nc,l,QSA]
RewriteRule ^request-quote.html$  request-quote.php [nc,l,QSA]
RewriteRule ^fleets.html$  fleet.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 ^reservation.html/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  book-now.php?service=$1 [nc,l,QSA]
RewriteRule ^blog/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  list-of-blog.php?btitle=$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]
RewriteRule ^([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+).html  city-listing.php?postname=$1 [nc,l,QSA]
RewriteRule ^category/([a-zA-Z0-9_+\-\,\&\s\.\!\$\(\)]+)  blog.php?catname=$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-php54” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php54 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
