parandiy/lada/master/.htaccess - Htaccess File

parandiy/lada/master/.htaccess

DirectoryIndex web/app_dev.php

RewriteEngine on
RewriteCond %{REQUEST_URI} .(css|jpg|gif|png|zip|rar|doc|xls|js|tif|tiff|docx|xlsx|ico|ttf|svg)$|test.php$
RewriteRule ^(.*)$ web/$1 [L,QSA]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule .* web/app_dev.php/$0 [PT]

#RewriteRule .* /#/$0 [R,L,NE]

# Rewrite all other URLs to index.php/URL
#RewriteRule .* web/app_dev.php/$0 [PT]

<IfModule mod_suphp.c>
  AddHandler application/x-httpd-php-5.4.8 .php
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache