tags:

views:

45

answers:

0

hey guys, i bet there are a lot of regexp and rewrite nerds out there. I have a kind of a big problem with a current wordpress website i'm working on.

my hosting provider gave me the following script to enable prettier urls for my wordpress blog on their zeus servers. this works really fine except i'm having one problem:

heres the code:

    RULE_0_START:
    # Get the document root path and put value into the SCRATCH array.
    # This is the server path not the web URL.
    # i.e. /clientdata/clients/p/h/php.testing.au.com/www/

map path into SCRATCH:DOCROOT from /

    # Get the URL without the domain.
    # e.g. /test&colour=red
    # e.g. /an-example-post/?color=red

 set SCRATCH:ORIG_URL = %{URL}
 set SCRATCH:REQUEST_URI = %{URL}

    # See if there are any queries in our URL.

 match URL into $ with ^(.*)\?(.*)$

    # If there are...

 if matched then
    # Set a var to path without the domain part.
    # e.g. /an-example-post

     set SCRATCH:REQUEST_URI = $1

    # Set a var to the passed queries.
    # e.g. colour=red

     set SCRATCH:QUERY_STRING = $2
 endif
 RULE_0_END:

(there are actually 3 rules but i guess this is the important one for my question because it covers the queries)

this script doesn't allow any php queries like /?key=hello&whatever in any URL on my server. wordpress is installed in my root directory. however i have on extra project on my folder which also lies in a folder in the root dir. this project uses a lot of php queries like /?p=anything&blabla&whatever. Since i've enabled the Zeus rewrite script for my domain this scripts aren't working anymore and end in a 404 (on my wordpess page).

is there a way to set an EXCEPTION or somethin for a specific folder where all queries work normally. I'm really helpless at the moment because I have no idea what to do now.

maybe there is an APACHE rule that lets me set an exception for a specific directory. i you know so i could use this http://support.zeus.com/zws/examples/2005/12/16/converting_apache_rules_to_zws to convert it to work on zeus servers.