Htaccess File

icamarkov/php-mvc-learning/master/.htaccess

REQUEST_FILENAME
Options -MultiViews

RewriteEngine On

Options -Indexes

#http://localhost/PHP/projects/MVCexample/
RewriteBase /PHP/projects/MVCexample/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Exit mobile version