invalid character rewrite

Discussion in 'Apache' started by Camay123, Dec 1, 2009.

  1. #1
    I got a website where lies a problem. Some can use invalid characters in an url that is always like:

    domain.com/news/archive/?<(>'

    for example

    I want that if anyone enter an url that contains one of these characters, it redirect to main page. The characters are:

    <
    >
    (
    )
    "
    '

    any way to do this via htacess ?
     
    Last edited: Dec 1, 2009
    Camay123, Dec 1, 2009 IP