-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
49 lines (33 loc) · 1.17 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
#Options +SymLinksIfOwnerMatch
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ /front-controller.php?action=$1 [QSA,L]
#<IfModule mod_rewrite.c>
# Options +SymLinksIfOwnerMatch
# RewriteEngine On
# RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
# RewriteRule ^(.*) - [E=BASE:%1]
# RewriteCond %{ENV:REDIRECT_STATUS} ^$
# RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
# RewriteCond %{REQUEST_FILENAME} -f
# RewriteRule .? - [L]
# Rewrite all other queries to the front controller.
# RewriteRule .? %{ENV:BASE}/index.php [L]
#</IfModule>
<IfModule mod_rewrite.c>
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*)$ /index.php [NC,L,QSA]
#Options -MultiViews
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.+) /controller/index.php?page=$1 [QSA,L]
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.+) /controller/index.php?page=$1 [QSA,L]
</IfModule>