How do I set up Wordpress URL handling to ignore certain directories?

I am using Dreamhost WordPress, Subversion and Trac. My Subversion repos are in / repos / [project_name], and my Trac installations are all in / trac / [project_name]. I also have a few other directories like / webapps / [appname] for the web applications I'm working on. However, if I go to / trac / [projectname] in my browser, Wordpress serves the 404 - which makes sense, there is no Wordpress page at that URL.

I wondered if this might be related to some plugins that I am running. I'll start by disabling all of my plugins and enabling them one at a time. However, I disabled them (and even reset my theme to the default) and the same behavior was performed.

I'm not sure if this is what I am doing programmatically or through the admin console and it really doesn't matter, but I didn't see anything in the console, so I'm assuming it's programmatic (and that's why I'm asking here). I just need to define directories that I don't want Wordpress to handle.

+2


source to share


1 answer


This is the behavior of WordPress in stock - its clean URLs work by redirecting all requests that don't match an existing file or directory in WordPress index.php

, which it then processes based on the URL.

The following .htaccess

before WordPress RewriteRule

should exclude these directories from this behavior.



RewriteRule ^(trac|repos|webapps) - [L]

      

+4


source







All Articles