Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've edited the .htaccess on root as referenced in Codex:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ blog [L]

The /blog/ directory has a .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress 

I receive a 404 as I get routed to mydomain.com/wp-login.php?redirect_to=/blog/

Basically I have a .htaccess at root that routes to the WP install on a subdirectory. The subdirectory also has a .htaccess that routes to index.php.

Should I consolidate the two .htaccess files into one .htaccess at root that routes to /blog/index.php?

I'm also defining the wp_siteurl & wp_home as /blog in wp-config. Ideally, I'd like to hide the /blog/index.php and simply have /index.php. Is that possible?

share|improve this question

closed as too localized by toscho Nov 21 '12 at 6:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

The Force User Login plugin was causing the error by overwriting the redirect rules.

I've abandoned the plugin altogether.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.