Htaccess File

cashmusic/platform/master/interfaces/admin/.htaccess

GET, QUERY_STRING, REQUEST_FILENAME, REQUEST_URI
# ----------------------------------------------------------------------
# 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 /admin
Options +FollowSymlinks 
Options -Indexes 

# add a slash to root requests
RewriteRule ^admin$ admin/ [R]

# 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]
Exit mobile version