For an example:
www.domain.com/part1/part2 has to be 201, but if you type www.domain.c开发者_开发百科om/part1 it has to be redirected to www.domain.com.
The normal redirect works by part2 aswell.
If you only need to redirect if there is not a second-level to the path, you should be able to use the following:
RewriteEngine on
RewriteRule part1$ / [L,R=301]
Hope this helps.
精彩评论