It is because your RewriteBase
is incorrect. It should reflect the relative path from DocumentRoot
. Use this:
RewriteEngine on
RewriteBase /a/b/c/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?p=$1 [L,QSA]