GustavoAdolfo/ProjetoFW2/master/.htaccess - Htaccess File

GustavoAdolfo/ProjetoFW2/master/.htaccess

Options -Indexes
RewriteEngine On

RewriteCond %{REQUEST_METHOD} =POST
RewriteRule ^ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.(php|htm|html|css|js|jpg|png|giv|svg)$
#RewriteCond %{REQUEST_METHOD} !POST [NC]
RewriteRule ^([a-zA-Z]+[a-zA-Z0-9_]*)/?$ index.php?controller=$1 [NC,L]
RewriteRule ^([a-zA-Z]+[a-zA-Z0-9_]*)/([0-9]+)/?$ index.php?controller=$1&id=$2 [NC,L]
RewriteRule ^([a-zA-Z]+[a-zA-Z0-9_]*)/(^[a-zA-Z]+[a-zA-Z0-9_]*)/?$ index.php?controller=$1&action=$2 [NC,L]
RewriteRule ^([a-zA-Z]+[a-zA-Z0-9_]*)/([a-zA-Z])/([a-zA-Z]+[a-zA-Z0-9_]*)/?$ index.php?controller=$1&action=$2&params=$3 [NC,L]
RewriteRule ^([0-9]+)/?$ index.php?profile=$1 [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_METHOD} !POST [NC]
RewriteCond %{REQUEST_URI} !.(php|htm|html|css|js|jpg|png|giv|svg)$
RewriteCond %{QUERY_STRING} !""
RewriteRule ^(.*)$ index.php?url=$1&%{QUERY_STRING} [NC,L]

On Github License

Files

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

Comments

Apache