1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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