I want the .htaccess send each file/directory to my index.php. I have this so far:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ index.php?urlparam=$1 [NC,L]
But this error apears on mysite.com/foobar, if directory exists:
Forbidden
You do not have permission to access this document.
If not:
Not Found
The requested document was not found on this server. (404)