-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
68 lines (34 loc) · 2.38 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Options -Indexes
RewriteEngine on
# ErrorDocument 404 /app/controller/error.php
# SITE CONTROLLER
# Menu Items
RewriteRule ^$ app/controller/siteController.php?action=exploreMap [QSA,L]
RewriteRule ^exploreBubbles/?$ app/controller/siteController.php?action=exploreBubbles [QSA,L]
RewriteRule ^recentTopics/?$ app/controller/siteController.php?action=recentTopics [QSA,L]
RewriteRule ^hotTopics/?$ app/controller/siteController.php?action=hotTopics [QSA,L]
RewriteRule ^myActivity/?$ app/controller/siteController.php?action=myActivity [QSA,L]
RewriteRule ^myFavorites/?$ app/controller/siteController.php?action=myFavorites [QSA,L]
# Account Management
RewriteRule ^signup/process/?$ app/controller/siteController.php?action=processSignup [QSA,L]
RewriteRule ^login/process/?$ app/controller/siteController.php?action=processLogin [QSA,L]
RewriteRule ^logout/?$ app/controller/siteController.php?action=logout [QSA,L]
RewriteRule ^profile/?$ app/controller/siteController.php?action=profile [QSA,L]
RewriteRule ^profile/update/?$ app/controller/siteController.php?action=updatePassword [QSA,L]
# POST CONTROLLER
# Topics
RewriteRule ^view/(\d+)/?$ app/controller/postController.php?action=threadView&tid=$1 [QSA,L]
RewriteRule ^switchFavorite/?$ app/controller/postController.php?action=switchFavorite [QSA,L]
RewriteRule ^addTopic/?$ app/controller/postController.php?action=addTopic [QSA,L]
RewriteRule ^addTopic/process/?$ app/controller/postController.php?action=processAdd [QSA,L]
RewriteRule ^editTopic/process/(\d+)/?$ app/controller/postController.php?action=processEdit&tid=$1 [QSA,L]
RewriteRule ^deleteTopic/process/(\d+)/?$ app/controller/postController.php?action=processDelete&tid=$1 [QSA,L]
# Replies
RewriteRule ^addReply/process/?$ app/controller/postController.php?action=processAddReply [QSA,L]
RewriteRule ^editReply/process/(\d+)/?$ app/controller/postController.php?action=processEditReply&rid=$1 [QSA,L]
RewriteRule ^deleteReply/process/(\d+)/?$ app/controller/postController.php?action=processDeleteReply&rid=$1 [QSA,L]
# For AJAX getting locations
RewriteRule ^exploreMapData/?$ app/controller/postController.php?action=populateExplore [QSA,L]
RewriteRule ^populateMap/(\d+)/?$ app/controller/postController.php?action=populateMap&tid=$1 [QSA,L]
# For AJAX getting all topics
RewriteRule ^populateBubbles/?$ app/controller/postController.php?action=populateBubbles [QSA,L]