-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
39 lines (29 loc) · 921 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##
# Requeriments
##
#$ sudo a2enmod rewrite
#
#<Directory />
# Options FollowSymLinks
# AllowOverride All
#</Directory>
# Necessary to prevent problems when using a controller named "index"
# and having a root index.php. More information in here:
# http://httpd.apache.org/docs/2.2/content-negotiation.html
Options -MultiViews
# Activates URL rewriting (like myproject.com/controller/action/1/2/3)
RewriteEngine On
# Disallows others to look directly into /public/ folder
Options -Indexes
#
Options +FollowSymLinks -SymLinksIfOwnerMatch
# When using the script within a sub-folder, put this path here, like
# /mysubfolder/. If your app is in the root of your web folder, then
# leave it commented out
#RewriteBase /phpmvc/
# General rewrite rules
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
# EOF