WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've searched quite a lot without finding a solution.

I have a wordpress blog in /_wp and something else in /other

What I'm trying to is that every request gets redirected to the WordPress. Except those to /other and its child directories. I also want the access to the blog to be rewritten. Few examples to make it clear:

/ --> /_wp/

/ablogpost --> /_wp/ablogpost

/other --> /other

/other/bingou --> /other/bingou 

I've tried a few things but what seems the most logical to me is:

  • don't touch the .htaccess of /_wp/

  • edit the .htaccess of the root '/' by adding:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?mywebsite.com$
    RewriteCond %{REQUEST_URI} !^(/other|/other/.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^/?(.*)$ /other/$1


So i've set correctly the /_wp dir as explained online. Though I can't access to /other this is my htaccess now: RewriteEngine On

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I was thinking of adding RewriteRule ^other - [L] though it still doesn't work....

share|improve this question

Follow instructions on Giving WordPress Its Own Directory in Codex.

share|improve this answer
I actually did. I know have a nice wordpress working. Though my other folder still doesn't work I get 404 errors all the time :( (I'm editing my question with the new .htaccess – charly Oct 11 '12 at 19:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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