-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
31 lines (21 loc) · 772 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
# Directory
Options -Indexes
# Filter
<FilesMatch "(?<!index).php?$">
Order Deny,Allow
Deny from all
</FilesMatch>
# Rewrite
Options +FollowSymlinks
RewriteEngine On
# Edit corrects
RewriteRule ^Vote\/([a-zA-Z0-9]+)\/Admin\/([a-zA-Z0-9]+) index.php?route=Admin&vote=$1&admin_code=$2 [L]
# Add corrects
# Public
RewriteRule ^Vote\/([a-zA-Z0-9]+)\/Public\/([a-zA-Z0-9]+) index.php?route=Add&vote=$1&mode=Public&free_vote_code=$2 [L]
# Personnal
RewriteRule ^Vote\/([a-zA-Z0-9]+)\/Personnal\/([a-zA-Z0-9]+)\/([a-zA-Z0-9]+) index.php?route=Add&vote=$1&mode=Personnal&personnal_name=$2&personnal_code=$3 [L]
# Vote
RewriteRule ^Vote\/([a-zA-Z0-9]+) index.php?route=Vote&vote=$1 [L]
# Routes simples
RewriteRule ^([a-zA-Z_]+)(\/)*$ index.php?route=$1 [L]