-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
29 lines (23 loc) · 949 Bytes
/
.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
RewriteEngine On
# /* force redirect to https */
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
# /* End Force HTTPS */
Options +FollowSymLinks
Options -Indexes
RewriteRule ^logout$ index.php?action=logout
RewriteRule ^sessionexpired$ index.php?session=expired
RewriteRule ^a/([a-zA-Z0-9_-]+)$ index.php?admin=$1
RewriteRule ^s/([a-zA-Z0-9_-]+)$ index.php?staff=$1
RewriteRule ^details/([0-9]+)$ index.php?page=details&details=$1
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?page=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . / [L,R=302]
# /* CopyRight PowerChaos 2016 */
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php54 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit