legendar/soften/master/site/.htaccess - Htaccess File

legendar/soften/master/site/.htaccess

Options -Indexes
RewriteEngine on

# Add trailing slash
RewriteCond %{REQUEST_METHOD}    !^POST
RewriteCond %{REQUEST_URI}         !^(.*).[A-Z]{2,4} [NC]
RewriteCond %{REQUEST_URI}         !^(.*)/forms/(.*)(check|do) [NC]
RewriteCond %{REQUEST_URI}         ^(.*)[^/]$
RewriteRule ^(.*)$  %{REQUEST_URI}/ [R=301,L]

# Redirect to index.php
#RewriteCond %{REQUEST_FILENAME}       !-d
#RewriteCond %{REQUEST_FILENAME}       !-f
RewriteRule ^(.*)   index.php?uri=/$1 [NS,L,PT,QSA]

On Github License

Files

Download PDF of Htaccess file
POST, REQUEST_FILENAME, REQUEST_METHOD, REQUEST_URI

Comments

Apache