Quantcast
Channel: Query value with chevrons sends 302 to / - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 2

Query value with chevrons sends 302 to /

$
0
0

When a special query value is typed in the URL, apache sends back a 302 redirect to root url (/).

We're using CPanel and we owns the server. The apache virtualhost file wasn't touched and is managed by CPanel. I tried to do some researches but when I type "redirect" or "302" with my issue, I get answers about "how to url-rewrite".

The problem appears when using chevrons and maybe other special characters. Here are the tested queries (on my server, on a test subdomain, no .htaccess involved, script echoes $_GET): http://dev.rihan.fr/echo.php

  • ?foo=%3c (ie. ?foo=<) (OK)
  • ?foo=%3e (ie. ?foo=>) (OK)
  • ?foo=%3c%3c (ie. ?foo=<<) (KO)
  • ?foo=%3e%3e (ie. ?foo=>>) (KO)
  • ?foo=%3d%3c (ie. ?foo==<) (OK)
  • ?foo=%3c%3d (ie. ?foo=<=) (KO)

We're on Apache 2.4.18, PHP 5.6.20.

Any idea on whether it's a known bug or a particular configuration? Thanks for your help.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>