Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
    

EDIT

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.