forked from TovuInitiative/Tovu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·24 lines (17 loc) · 957 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
#DirectoryIndex index.php
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks -Indexes
Options +SymLinksIfOwnerMatch -Indexes
# disable the Apache MultiViews directive if it is enabled on the server. It plays havoc with URL rewriting
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?com=$1 [L,QSA]
#RewriteCond %{REQUEST_URI} !^/?(sysman|sysadm|google71fc6c1ec4da5d35.html)(/?)
RewriteRule ^([a-zA-Z0-9-]+)(/?)$ index.php?com=$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9-]+)\.htm(l?)$ index.php?com=$1 [L,QSA]
RewriteRule ^([0-9-]+)/([a-zA-Z0-9-]+)(/?)$ index.php?item=$1&com2=$2 [L,QSA]
RewriteRule ^([0-9-]+)/([a-zA-Z0-9-]+)\.htm(l?)$ index.php?item=$1&com2=$2 [L,QSA]
RewriteRule ^(resource)/([a-zA-Z0-9-]+)(/?)$ index.php?com=$1&dc=$2 [L,QSA]
RewriteRule ^(resource)/([a-zA-Z0-9-]+)\.htm(l?)$ index.php?com=$1&dc=$2 [L,QSA]