我怎么能在 htaccess 中做到这一点
我有
/main_dir/([a-z-]+)/dir1 - this should remain as it is
/main_dir/([a-z-]+)/dir2 - this should remain as it is
/main_dir/([a-z-]+)/dir2/UQ13A -this should remain as it is
但
/main_dir/([a-z-]+)/UQ13A -should take me to /main_dir/$1/dir2/UQ13A
UQ13A - 可以是任何包含 [a-zA-Z0-9-] 的字符串
我对负前瞻和后视不太熟悉
现在我有类似的东西
/main_dir/([a-z-]+)/(?!(dir1|dir2)) /main_dir/$1/dir2/$2
这不起作用