-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
29 lines (24 loc) · 932 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
# ----------------------------------------------------------------------
# CASH Music admin-specific rewrites
#
# The RewriteBase will need to be set as a part of the installer, but
# the rest is pretty much stock
# ----------------------------------------------------------------------
RewriteEngine On
RewriteBase /
Options +FollowSymlinks
Options -Indexes
DirectoryIndex controller.php
# create controller redirects
# no GET querystring
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !.*\.(css|jpg|jpeg|gif|png|zip|js|md|swf)$
RewriteCond %{QUERY_STRING} !(.+)
RewriteRule (.*) controller.php?p=$1 [L]
# found a GET querystring, rewrite and forward
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !.*\.(css|jpg|jpeg|gif|png|zip|js|md|swf)$
RewriteCond %{QUERY_STRING} (.+)
RewriteRule ([^\?]+) controller.php?p=$1&%1 [L]