cashmusic/platform/master/interfaces/public/request/.htaccess - Htaccess File

cashmusic/platform/master/interfaces/public/request/.htaccess

# ----------------------------------------------------------------------
# CASH Music public request 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 /public/request
Options +FollowSymlinks 
Options -Indexes 

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

# create controller redirects

# no GET querystring
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{QUERY_STRING} !(.+)
RewriteRule (.*) request.php?p=$1 [L]

# found a GET querystring, rewrite and forward
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{QUERY_STRING} (.+)
RewriteRule ([^?]+) request.php?p=$1&%1 [L]

On Github License

Files

Download PDF of Htaccess file
GET, QUERY_STRING, REQUEST_FILENAME

Comments

Apache