# Enabled url rewritting
Options +FollowSymlinks
RewriteEngine On
# Exclude url that will not be interpreted by the router
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/$
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/index.php$
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/static/?$
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/static/js/.*$
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/static/html/.*$
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/static/dist/.*$
RewriteCond %{REQUEST_URI} !^(/awesomechatroom)?/static/fonts/.*$
# Redirect all the left urls to the router
RewriteRule ^(.*)$ php/router.php?action=$1 [B,NE,QSA,L]
# Custom 404 not found error page
ErrorDocument 404 /static/html/404NotFound.html