I have a wordpress blog that is installed on the root of my domain.
I have put another piece of software in a subdirectory.
When I try to access the subdirectory (http://www.blah.com/abc) I get a 404 error from wordpress.
I've done some reading and it looks like I need to have a rewritecond and a rewrite rule before the rewritebase below:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
But I have no clue what I need there.
G-Man
Indeed, you want to prevent rewriting if
/abc
is requested. The additionnalRewriteCond
should be :Place it right before the existing
RewriteRule
line. It means the requested URI should not start with "/abc/" for the following rule to be applied.Says that if a file exists with that name, do not rewrite it.
Says that if a directory exists with that name, do not rewrite it.
So your .htaccess should be all set already. Check the permissions on your new directory to make sure it is readable by the webserver (i.e. 755 or similar) and do the same with the files in the directory.