forked from Flajakay/minecraftserverlistphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
93 lines (75 loc) · 4.7 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index$ index.php
RewriteRule ^sitemap.xml$ sitemap.php
RewriteRule ^paymentfail$ /processing/payment/fail.php
RewriteRule ^paymentsuccess$ /processing/payment/success.php
RewriteRule ^paymentresult$ /processing/payment/result.php
RewriteRule ^login$ index.php?page=login
RewriteRule ^logout$ index.php?page=logout
RewriteRule ^register$ index.php?page=register
RewriteRule ^resend-activation$ index.php?page=resendactivation
RewriteRule ^submit$ index.php?page=submit
RewriteRule ^lost-password$ index.php?page=lostpassword
RewriteRule ^reset-password/(.*)/(.*)$ index.php?page=resetpassword&email=$1&lost_password_code=$2
RewriteRule ^activate/(.*)/(.*)$ index.php?page=activate&email=$1&activation_code=$2
RewriteRule ^not-found$ index.php?page=notfound
RewriteRule ^purchase-highlight$ index.php?page=purchase_highlight
RewriteRule ^terms-of-service$ index.php?page=tos
RewriteRule ^contact$ index.php?page=contact
RewriteRule ^privacy-policy$ index.php?page=privacy_policy
RewriteRule ^disclaimer$ index.php?page=disclaimer
RewriteRule ^settings/design$ index.php?page=designs
RewriteRule ^settings/password$ index.php?page=password
RewriteRule ^settings/profile$ index.php?page=settings
RewriteRule ^edit-server/(.*)/(.*)/(.*)$ index.php?page=server_edit&server_id=$1&type=$2&token=$3
RewriteRule ^edit-server/(.*)$ index.php?page=server_edit&server_id=$1
RewriteRule /status/access$ index.php?status=access
RewriteRule ^status/loggedout$ index.php?status=loggedout
RewriteRule ^status/loggedin$ index.php?status=loggedin
RewriteRule ^admin/categories-management$ index.php?page=admin_categories_management
RewriteRule ^admin/categories-management/delete/(.*)/(.*)$ index.php?page=admin_categories_management&delete=$1&token=$2
RewriteRule ^admin/edit-category/(.*)$ index.php?page=admin_category_edit&category_id=$1
RewriteRule ^admin/users-management$ index.php?page=admin_users_management
RewriteRule ^admin/users-management/status/(.*)/(.*)$ index.php?page=admin_users_management&status=$1&token=$2
RewriteRule ^admin/users-management/delete/(.*)/(.*)$ index.php?page=admin_users_management&delete=$1&token=$2
RewriteRule ^admin/edit-user/(.*)$ index.php?page=admin_user_edit&user_id=$1
RewriteRule ^admin/payments-management$ index.php?page=admin_payments_management
RewriteRule ^admin/payments-management/delete/(.*)/(.*)$ index.php?page=admin_payments_management&delete=$1&token=$2
RewriteRule ^admin/servers-management$ index.php?page=admin_servers_management
RewriteRule ^admin/servers-management/status/(.*)/(.*)$ index.php?page=admin_servers_management&status=$1&token=$2
RewriteRule ^admin/servers-management/delete/(.*)/(.*)$ index.php?page=admin_servers_management&delete=$1&token=$2
RewriteRule ^admin/edit-server/(.*)/(.*)/(.*)$ index.php?page=admin_server_edit&server_id=$1&type=$2&token=$3
RewriteRule ^admin/edit-server/(.*)$ index.php?page=admin_server_edit&server_id=$1
RewriteRule ^admin/reports-management$ index.php?page=admin_reports_management
RewriteRule ^admin/edit-report/(.*)$ index.php?page=admin_report_edit&report_id=$1 [QSA]
RewriteRule ^admin/website-settings$ index.php?page=admin_website_settings
RewriteRule ^admin/website-settings/success$ index.php?page=admin_website_settings&status=success
RewriteRule ^admin/website-statistics$ index.php?page=admin_website_statistics
RewriteRule ^admin/reset$ index.php?page=admin_reset
RewriteRule ^servers$ index.php?page=servers [QSA]
RewriteRule ^servers/([^/]+)$ index.php?page=servers¤t_page=$1 [QSA]
RewriteRule ^my-servers$ index.php?page=my_servers [QSA]
RewriteRule ^my-servers/([^/]+)$ index.php?page=my_servers¤t_page=$1 [QSA]
RewriteRule ^my-favorites$ index.php?page=my_favorites [QSA]
RewriteRule ^my-favorites/([^/]+)$ index.php?page=my_favorites¤t_page=$1 [QSA]
RewriteRule ^profile/([^/]+)$ index.php?page=profile&username=$1
RewriteRule ^server/([^/]+):([^/]+)$ index.php?page=server&address=$1&port=$2
RewriteRule ^category/([^/]*)$ index.php?page=category&url=$1
RewriteRule ^category/([^/]*)/([^/]*)$ index.php?page=category&url=$1¤t_page=$2
RewriteRule ^banner/(.*)/(.*)/(.*)/(.*)$ pages/banner.php?server_id=$1&background=$2&text_color=$3&border_color=$4 [QSA]
RewriteCond %{DOCUMENT_ROOT}/install.php -f
RewriteCond %{SCRIPT_FILENAME} !install.php
RewriteRule ^(index\.php|/|)$ /install.php [L]
</IfModule>
ErrorDocument 404 /not-found
ErrorDocument 400 /not-found
ErrorDocument 401 /not-found
ErrorDocument 403 /not-found
ErrorDocument 405 /not-found
ErrorDocument 409 /not-found
ErrorDocument 413 /not-found
ErrorDocument 414 /not-found
ErrorDocument 500 /not-found
ErrorDocument 501 /not-found