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

cashmusic/platform/master/interfaces/api/.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 /api
Options +FollowSymlinks
Options -Indexes

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

# create controller redirects

# no GET querystring
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
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 %{QUERY_STRING} (.+)
RewriteRule ([^?]+) controller.php?p=$1&%1 [L]

On Github License

Files

Download PDF of Htaccess file
GET, QUERY_STRING, REQUEST_FILENAME

Comments

Apache