HugoC4/PHP-MVC-MGL/develop/.htaccess - Htaccess File

HugoC4/PHP-MVC-MGL/develop/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

## This 'ere code thingy be a test. Possible remove this la'er.
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^ - [L]

## Rename these params if you must, see if IGAF.
RewriteRule ^([^/]+)/?$ ?controller=$1 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/?$ ?controller=$1&action=$2 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/?(.*?)$ ?controller=$1&action=$2&params=$3 [L,QSA]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache