- example.org/
- example.org//
- example.org///
- and so on
but also:
- example.org/foobar//
- example.org///foobar/
- example.org///foobar///maria/peter///karl/
- and so on
I think there is no situation, where you want/need more than one slash (or am I wrong?)
I found this solution (untested) in a german board:
- Code: Select all
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /(([^/\ ]+/)*)/+([^\ ]*)
RewriteRule ^ /%1%3 [L,R=301]
Is this okay? Could this be tweaked?