Htaccess File

wlab/nanophp/master/web/.htaccess

ENV, HTTP_HOST
Options +FollowSymLinks
Options +Indexes
<IfModule mod_headers.c>
  Header set PHPFramework "NanoPHP Version 2"
</IfModule>

RewriteEngine On

RewriteRule ^favicon.ico$ favicon.ico [L]
RewriteRule  ^(css|js|img|assets)/(.*)$ $1/$2 [L]

# ####### Dev ##########
RewriteCond %{HTTP_HOST} ^nanophp.dev$
RewriteRule  .* index.php [L,E=PROJECT_APP:example,E=PROJECT_ENV:Dev]
# #######################
Exit mobile version