taller-mvc / mvc /public /.htaccess
ladogton2010's picture
Especifiying base folder on public's .htaccess
67777dd
raw
history blame contribute delete
428 Bytes
# Command $a2enmod rewrite must be enabled if not working on Debian. This was tested on debian and apache 2 server
<IfModule mod_rewrite.c>
Options -Multiviews
RewriteEngine On
# Specify the relative path from the parent folder indicated by the VirtualHost to the public folder
RewriteBase /public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
</IfModule>