Take the 2-minute tour ×

This RewriteRule

RewriteRule ^test/(.*)$ test.php?url=$1

On this URL


Is giving me this result


I'm using easyphp if it matters and I like to know why is Apache removing multiple slashes internally without redirecting to correcred URL? and how can I disable or add a redirect to this behaviour?

Thank in advance

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

It seems multiple slashes are against the standard. As pointed out in this post, RFC 1630 says:



/// does not imply a hierarchical structure - you'd have empty folder names. From that I would guess that Apache's behaviour is by design. (Nor would it be a good idea to use multiple slashes, as the result would be an invalid URL).

I would use a different character instead.

share|improve this answer
Thanks. and doesn't this behavior make duplicate content if a search engine follows a multiple slashed link from another site to mine? –  Drust Jan 2 '12 at 10:38
@Drust I would expect that Google fixes the link as well, but I can't say for sure. But if Apache fixes it with a 301, I think Google should understand –  Pekka 웃 Jan 2 '12 at 13:49
add comment

Your Answer


