RewriteEngine On

# Set RewriteBase to / if public folder is DocumentRoot
RewriteBase /basicphp/public/

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

RewriteRule ^(.+)$ index.php/$1 [QSA,L]
