RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
This is my current .htaccess. It doesn’t work when I put it in a folder (it works otherwise). It just gives Not Found page. Why is that?
Because for a sub directory you need to specify the path like
in the top of your file, right after
RewriteEngine On