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?
