Excluding a directory from PHP script?

Discussion in 'PHP' started by Cyrus255, Oct 14, 2006.

  1. #1
    What would be the proper command to exclude a directory from THIS php script?

    RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
    RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*) index.php

    As for the specific context of use, I am using Joomla CMS' OpenSEF, and it comes into conflict with another application which generates static urls (for dynamic code) for a specific directory.
     
    Cyrus255, Oct 14, 2006 IP
    GTech likes this.
  2. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you saying that there is a directory that, when accessed, you don't want mod_rewrite to redirect the request?
     
    Gordaen, Oct 14, 2006 IP
  3. vishwaa

    vishwaa Well-Known Member

    Messages:
    271
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    138
    #3
    I believe this is what you need.
     
    vishwaa, Oct 14, 2006 IP