404 when permalinks turned on with blog in subdirectory
-
I have a new blog installed in
/home/user/blog
— the ApacheDocumentRoot
is set to/home/user
, not/home/user/blog
— this is intentional (some other code runs out of the document root). When default (ugly) URLs are set, everything works fine, but when pretty permalinks are set, urls likehttps://domain.com/blog/2009/05/16/my-pretty-permalinked-post/
result in a 404 error.The blog homepage comes up ok, and stuff in wp-content is working (images, etc.), and /blog/wp-admin is fine, too. Any other page seems to result in a 404. This leads me to think that requests are getting to
~/blog/index.php
correctly, but something in the internal rewriting is unhappy.SiteURL and Home are both set to https://domain.com/blog. The .htaccess file in the ~/blog directory is readable and writable by apache and getting updated:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule>
I will owe my eternal gratitude to the person who helps me understand how I have messed things up so badly ??
Thanks in advance!
- The topic ‘404 when permalinks turned on with blog in subdirectory’ is closed to new replies.