0

After moving this mod_rewrite code from .htaccess in the directory to apache2.conf its no longer working

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^                   index.php [L,NS]

error

Bad Request

Your browser sent a request that this server could not understand.

1 Answer 1

2

You need to put them inside a Directory block.

Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .