cashmusic/platform/master/interfaces/admin/.htaccess - Htaccess File

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

# ----------------------------------------------------------------------
# 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]

On Github License

Files

Download PDF of Htaccess file
GET, QUERY_STRING, REQUEST_FILENAME, REQUEST_URI

Comments

Apache