Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /public/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteRule ^$ index.php [L,QSA]
RewriteRule ^about/?$ about/index.php [L,QSA]
RewriteRule ^about/team/?$ about/team.php [L,QSA]
RewriteRule ^about/clients/?$ about/clients.php [L,QSA]
RewriteRule ^about/careers/?$ about/careers.php [L,QSA]
RewriteRule ^services/?$ services/index.php [L,QSA]
RewriteRule ^services/it/?$ services/it.php [L,QSA]
RewriteRule ^services/real-estate/?$ services/real-estate.php [L,QSA]
RewriteRule ^services/travel/?$ services/travel.php [L,QSA]
RewriteRule ^works/?$ works/index.php [L,QSA]
RewriteRule ^works/([a-z0-9-]+)/?$ works/detail.php?slug=$1 [L,QSA]
RewriteRule ^blog/?$ blog/index.php [L,QSA]
RewriteRule ^blog/([a-z0-9-]+)/?$ blog/detail.php?slug=$1 [L,QSA]
RewriteRule ^shop/?$ shop/index.php [L,QSA]
RewriteRule ^shop/cart/?$ shop/cart.php [L,QSA]
RewriteRule ^shop/checkout/?$ shop/checkout.php [L,QSA]
RewriteRule ^shop/([a-z0-9-]+)/?$ shop/detail.php?slug=$1 [L,QSA]
RewriteRule ^properties/?$ properties/index.php [L,QSA]
RewriteRule ^properties/([a-z0-9-]+)/?$ properties/detail.php?slug=$1 [L,QSA]
RewriteRule ^tours/?$ tours/index.php [L,QSA]
RewriteRule ^tours/([a-z0-9-]+)/?$ tours/detail.php?slug=$1 [L,QSA]
RewriteRule ^account/?$ account/index.php [L,QSA]
RewriteRule ^account/orders/?$ account/orders.php [L,QSA]
RewriteRule ^account/wishlist/?$ account/wishlist.php [L,QSA]
RewriteRule ^account/profile/?$ account/profile.php [L,QSA]
RewriteRule ^login/?$ login.php [L,QSA]
RewriteRule ^register/?$ register.php [L,QSA]
RewriteRule ^forgot-password/?$ forgot-password.php [L,QSA]
RewriteRule ^contact/?$ contact.php [L,QSA]
RewriteRule ^privacy/?$ privacy.php [L,QSA]
RewriteRule ^terms/?$ terms.php [L,QSA]
RewriteRule ^unsubscribe/?$ unsubscribe.php [L,QSA]
RewriteRule ^sitemap.xml$ sitemap.php [L,QSA]
RewriteRule ^robots.txt$ robots.txt [L]
RewriteRule ^.*$ 404.php [L]
</IfModule>
