I have wordpress installed and working fine at root level.
I have also installed (with separate DB) in a test folder. Each time I try to access anything in admin other than the admin/index.php file I get a 404.
So i have:
domain.com - working fine
domain.com/admin - working fine
domain.com/test/demo - working fine
domain.com/test/demo/admin/index.php - working fine
domain.com/test/demo/admin/any other file - 404
I have this in both root and demo folder htaccess:
DirectoryIndex index.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I've tried with and without htaccess but no joy.