WordPress Mod Rewrite Directory Exclusion

Discussion in 'Apache' started by Fahd, Jan 2, 2006.

Thread Status:
Not open for further replies.
  1. #1
    I have a wordpress install with the following .htaccess file and everything currently works fine.

    However, I want to exclude certain directories for example "support" from being passed through to the wp index file.

    Right now example.com/support/* gets passed through WP and I get the error 404. I want example.com/support/* to go to example.com/support/*

    I've tried various suggestions I found in some threads on here and from extensive google searches and nothing seems to work. That is, support still goes through wordpress and doesnt just load example.com/support.

    Any help appreciated! :)
     
    Fahd, Jan 2, 2006 IP
  2. Fahd

    Fahd Well-Known Member

    Messages:
    2,152
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Interesting discovery...the problem is because the particular directory is password protected, inside /support the .htaccess requires user authentication.

    The above works fine for directories that are not password protected.

    Any idea how to get it to work with password protected directories?
     
    Fahd, Jan 2, 2006 IP
  3. error10

    error10 Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Fahd, search for the WordPress Reduced Rewrite Plugin and install it. It should solve the problem. Not to mention clean up your .htaccess file :)
     
    error10, Jan 7, 2006 IP
    Fahd likes this.
Thread Status:
Not open for further replies.