dzautner/Nameless-MVC/master/.htaccess - Htaccess File

dzautner/Nameless-MVC/master/.htaccess

Options +FollowSymLinks

RewriteEngine On
RewriteBase /

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

#Drop the trailing slash
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$  /$1

#Clean up the URL
RewriteRule ^([a-zA-Z0-9]+)$ index.php?c=$1
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ index.php?c=$1&f=$2
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ index.php?c=$1&f=$2&d=$3

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI, SCRIPT_FILENAME

Comments

Apache