Hi everyone...

I'm playing with mod_rewrite these days and found something strange...

Let's use this rule :
RewriteRule /(.).def$ test.php?page=$1 [NE]

So anything ending with .def will be "sent" to test.php using the variable page...

If you use a colon, error ! 403/Forbidden...
(ex: http://localhost/test:test.def)

BUT, if you put a slash BEFORE the colon, then it works...
(ex: http://localhost/test/test:test.def)

I haven't got that one honestly...

Would anyone know what this happens ?!

Cheers 🙂

    Write a Reply...