Apache Rewrite Rule

Discussion in 'Server Operation' started by jonny002, Sep 18, 2015.

  1. jonny002

    jonny002 New Member


    I am trying to create a rewrite rule so that if a user puts in a certain URI into their browser it gets redirected to a 400 error page on the server and also gives a 400 error in the log, I have tried the following but have had no luck. Any help would be very much appreciated:

    RewriteCond %{QUERY_STRING} ?uri=nm:eek:id:
    RewriteRule /error/400.html [L=400]

Share This Page