Problem with Mod Rewrite and Analytics

Discussion in 'PHP' started by adamjblakey, Sep 21, 2009.

  1. #1
    Hi,

    I have the following in my htaccess file for my url friendly urls. The problem is that with this it is not allowing analytics to verify the site or work. When i remove the htaccess file it works fine.

    
    RewriteEngine On
    
    RewriteRule ^([a-zA-Z0-9-_]+)\.html$ index.php?title=$1
    RewriteRule ^properties/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)\.html$ index.php?title=$1
    
    Code (markup):
    Can someone please advise.

    Cheers,
    Adam
     
    adamjblakey, Sep 21, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    change [a-zA-Z0-9-_]+ to [^/]+ so all chars are allowed until / is found :)

    this is one from my htaccess
    ([^/]+)/([^/]+)/([^/]+)/([^/]+)
     
    EricBruggema, Sep 22, 2009 IP
  3. TheOnly92

    TheOnly92 Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What kind of analytics do you use?
     
    TheOnly92, Sep 22, 2009 IP