I want to write a RewriteCond and only works on one level so that:
1)
http://blabla.com/
gets redirected
2)
http://blabla.com/test/
gets redirected
3)
http://blabla.com/about/test/
doesn't gets redirected
I've tried:
RewriteCond %{REQUEST_URI} ^/.*/(test)? [nocase]
but the .* takes 3) also which is an error.
I've tried .*? but non greedy doesn't work. Produces error 500
Anybody have an answer?