Stopping mod_rewrite on certain directories?

Posted on 2006-03-23
Last Modified: 2010-03-04
I have a mod_rewrite script that changes query string URLs into directories. The problem is I just added a real directory, and mod_rewrite confuses it with a query string URL. Is there a way to say if the url is requesting /thisdirectory/ or anything in /thisdirectory/ to just go to that directory?
Question by:NickMaton12757
    LVL 27

    Expert Comment

    RewriteRule ^directory  - [L]

    above your RewriteRules to skip them.

    Author Comment

    That makes work, but it still doesn't like
    LVL 27

    Accepted Solution

    The regEx uis open to rthe right side, so it should catch every filepath starting with directory. Do you have othr .htaccess files in place? Check the RewriteLog.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now