Htaccess File

PunktSonstNichts/CMS/master/.htaccess

REQUEST_FILENAME
RewriteEngine On

# If a resource exists, serve it

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# Otherwise, redirect to index file

RewriteRule ^([^/]*)$ /CMS/index.php?site=$1 [L]
RewriteRule ^([^/]*)/([^/]*)$ /CMS/index.php?site=$1&get=$2 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /CMS/index.php?site=$1&get=$2&mode=$3 [L]
Exit mobile version