-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·43 lines (30 loc) · 1.33 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
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# HTML PAGES
RewriteRule /answer/([0-9]+)$ ./user/getanswerdetails.php?answer=$1
RewriteRule /message/([0-9]+)$ ./user/getquestiondetails.php?id=$1
RewriteRule ^account/start$ ./user/useraccount.php?start=true[L,QSA]
RewriteRule ^account$ ./user/useraccount.php [L,QSA]
RewriteRule (\w+)/write$ ./public/writequestion.php?username=$1
RewriteRule /settings$ ./forms/setupaccount.php [L,QSA]
RewriteRule ^setupaccount/new$ ./forms/setupaccount.php?accountcreated
RewriteRule ^forgotpassword$ forgotpassword.php
RewriteRule ^logout$ logout.php
RewriteRule ^home$ index.php
RewriteRule ^error$ 404.html
RewriteRule ^login$ login.php
RewriteRule ^register$ login.php#register
RewriteRule ^(\w+)$ ./public/showuser.php?username=$1
RewriteRule ^(\w+)/ask$ ./public/writequestion.php?username=$1
#HELPER FILES
RewriteRule ^public-helper$ ./public/func/functions.php [L,QSA]
RewriteRule ^fullsearch$ ./user/show_searches.php
RewriteRule ^fullsearch/(\w+)$ ./user/show_searches.php?search=$1
RewriteRule ^user-helper$ ./user/func/userfunctions.php
RewriteRule ^image-uploader$ ./forms/upload.php [L,QSA]
RewriteRule ^auth-helper$ ./forms/authentication.php [L,QSA]
ErrorDocument 404 /error
ErrorDocument 403 /error
ErrorDocument 500 /error