-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
53 lines (27 loc) · 1.36 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
# Turn Rewrite Engine On
RewriteEngine On
# 404 -> Index
ErrorDocument 404 /
# Rewrite URL for login.php
# NC makes the rule non case sensitive
# L makes this the last rule that this specific condition will match
RewriteRule ^home index.php?p=home [NC,L]
RewriteRule ^profil/([^/]+)$ index.php?p=profile&u=$1 [L]
RewriteRule ^cont index.php?p=account [NC,L]
RewriteRule ^conectare index.php?p=login [NC,L]
RewriteRule ^deconectare index.php?p=logout [NC,L]
RewriteRule ^inregistrare index.php?p=register [NC,L]
RewriteRule ^administrare index.php?p=admin [NC,L]
RewriteRule ^notificari index.php?p=notifications [NC,L]
RewriteRule ^postare/([^/]+)$ index.php?p=post&id=$1 [L]
# Redirect path to rewriten url
RedirectMatch 301 /themes/main/pages/account/account.php /cont
RedirectMatch 301 /themes/main/pages/account/login.php /conectare
RedirectMatch 301 /themes/main/pages/account/logout.php /deconectare
RedirectMatch 301 /themes/main/pages/account/notifications.php /notificari
RedirectMatch 301 /themes/main/pages/account/register.php /inregistrare
RedirectMatch 301 /themes/main/pages/index/page.php /home
RedirectMatch 301 /themes/main/pages/maintenance/404.php /home
RedirectMatch 301 /themes/main/pages/maintenance/maintenance.php /home
RedirectMatch 301 /themes/main/pages/account/profile.php /membru
RedirectMatch 301 /themes/main/pages/post/index.php /home