-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
27 lines (20 loc) · 1.02 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
RewriteEngine On
RewriteBase /freedictions/
# Rewrite exceptions (notice there is no "^" at the beginning of the pattern)
RewriteRule style.css$ style.css [L,QSA]
RewriteRule FiraSans.ttf$ FiraSans.ttf [L,QSA]
RewriteRule svg/(.+)$ svg/$1 [L,QSA]
RewriteRule controller.php$ controller.php [L,QSA]
RewriteRule signout$ controller.php?action=signout [L,QSA]
# Rewrite prediction/xxx/edit to index.php?view=prediction_edit&id=xxx
RewriteRule ^prediction/(.+)/edit$ index.php?view=edit&id=$1 [L,QSA]
# Rewrite prediction/xxx to index.php?view=prediction&id=xxx
RewriteRule ^prediction/(.+)$ index.php?view=prediction&id=$1 [L,QSA]
# Rewrite user/xxx/password to index.php?view=password&user=xxx
RewriteRule ^user/(.+)/password$ index.php?view=password&user=$1 [L,QSA]
# Rewrite user/xxx to index.php?view=user&user=xxx
RewriteRule ^user/(.+)$ index.php?view=user&user=$1 [L,QSA]
# Rewrite root to index.php?view=home
RewriteRule ^$ index.php?view=home [L,QSA]
# Rewrite xxx to index.php?view=xxx
RewriteRule ^(.+)$ index.php?view=$1 [L,QSA]