Mod rewrite help needed, different behaviour different servers.

Discussion in 'Apache' started by jakeylakey, Jul 12, 2007.

  1. #1
    Hello,

    Ive got a problem installing an php application on a new server. It requires rewrite rules and im finding that the behaviour is different between 2 servers.

    The url is (yes // is correct).

    http://www.xxx.co.uk/xxxxxx//xxxxxxxx/

    The above is matched on server A but not server B by the rule.

    RewriteRule ^([A-z0-9\-]*)/([A-z0-9\-]*)/([A-z0-9\-]*)/$ /$1\.php?a=$2&b=$3&this=$1 [L]

    It simple doesnt see the blank space between // as a parameter, even though the documentation states that []* should match, including blank space.

    Thanks for any help.
     
    jakeylakey, Jul 12, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2


    try changing ([A-z0-9\-]*) to ([A-z0-9\-\ ]*)

    (there's a \space in there)

    different machines can have different versions of the pre lib, also you might have different major versions of apache on the machines.
     
    powerspike, Jul 16, 2007 IP