In my root .htaccess
file wordpress has put this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
and in a sub directory I have this .htaccess
file:
RewriteEngine on
RewriteRule ^bank/([^/.]+)/?$ bank/index.php?title=$1 [L]
My .htaccess
file works on other servers where it is in the root! I now get a 404 error when there is anything after bank/
but I know that the code in bank/index.php
is working as bank/index.php?title=ppi
works fine.