The requested URL /chat/United Kingdom was not found on this server.

Discussion in 'Apache' started by UtemptMe - Ed, Apr 3, 2008.

  1. #1
    Hi,

    I'm having a few issues with my modrewrite, I've had a quick sniff through the forums and haven't seen anything that would fix this.

    If I goto the url:

    domain.com/chat/United%20Kingdom

    it gives me:

    Not Found
    The requested URL /chat/United Kingdom was not found on this server.

    If I add an underscore it work's but returns no results as it's saved as United Kingdom in the database.

    How Can I get around this? this is what i'm using in my .htaccess:

    RewriteRule ^chat/([-_!*$@~:.a-zA-Z0-9]+)/?$ /search.results.php?search=1&c=$1
    PHP:
     
    UtemptMe - Ed, Apr 3, 2008 IP
  2. UtemptMe - Ed

    UtemptMe - Ed Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just incase anyone else has this problem, I've fixed it using this:

    RewriteRule ^chat/(.*)/?$ /search.results.php?search=1&c=$1
    PHP:
     
    UtemptMe - Ed, Apr 3, 2008 IP