Sioweb/Sioweb-MVC/master/.htaccess - Htaccess File

Sioweb/Sioweb-MVC/master/.htaccess

RewriteEngine on
RewriteBase /Sioweb-MVC/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9]+)/+([a-zA-Z0-9]+)/+([a-zA-Z0-9]+)/? index.php?controller=$1&action=$2&action_id=$3 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/+([^/]*)/+([^/]*)/?([^/]*)/?([^/]*)/?([^/]*)/?([^/]*)/?([^/]*)/?([^/]*)/? index.php?controller=$1&action=$2&param1=$3&param2=$4&param3=$5&param4=$6&param5=$7&param6=$8&param7=$9 [L,QSA]

## Set the action to your Root-File like index, home, startpunkt – Results: index.html.php, home.html.php, startpunkt.html.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/ index.php?controller=$1&action=index [L,QSA]

## Set your default-controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ ?root_controller=setup [L,QSA]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache