Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

mod rewrite regex tweak help needed

Last post 01-25-2010, 3:24 AM by SimonDorfman. 0 replies.
Sort Posts: Previous Next
  •  01-25-2010, 3:24 AM 58810

    mod rewrite regex tweak help needed

    I need to adjust a regex within an .htaccess file (for a wordpress site) to make mod_rewrite not only ignore my "wiki" directory, but also ignore all directories within "wiki".  Here's the code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(wiki|wiki/.*)$
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Many thanks in advance for any help!

    Simon

    P.S.-I first learned how to exclude the wiki directory from the tip on this site: http://www.jfoobar.org/labs/code-snippets/96-exclude-folder-from-htaccess-rewrites.html

View as RSS news feed in XML