ladogton2010 commited on
Commit
67777dd
·
1 Parent(s): 28286c5

Especifiying base folder on public's .htaccess

Browse files
Files changed (1) hide show
  1. mvc/public/.htaccess +4 -0
mvc/public/.htaccess CHANGED
@@ -1,8 +1,12 @@
1
  # Command $a2enmod rewrite must be enabled if not working on Debian. This was tested on debian and apache 2 server
 
2
  <IfModule mod_rewrite.c>
3
  Options -Multiviews
4
  RewriteEngine On
 
 
5
  RewriteBase /public
 
6
  RewriteCond %{REQUEST_FILENAME} !-d
7
  RewriteCond %{REQUEST_FILENAME} !-f
8
  RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
 
1
  # Command $a2enmod rewrite must be enabled if not working on Debian. This was tested on debian and apache 2 server
2
+
3
  <IfModule mod_rewrite.c>
4
  Options -Multiviews
5
  RewriteEngine On
6
+
7
+ # Specify the relative path from the parent folder indicated by the VirtualHost to the public folder
8
  RewriteBase /public
9
+
10
  RewriteCond %{REQUEST_FILENAME} !-d
11
  RewriteCond %{REQUEST_FILENAME} !-f
12
  RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]