Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在设置了一个正则表达式:
^/technology/(.*)$
它适用于所有子文件夹和文件。问题是我不希望它只是技术文件夹时重定向。
/technology/ FALSE /technology/something/ TRUE /technology/something/else/ TRUE
抱歉 - 我是正则表达式新手!
试试这个正则表达式:
^/technology/(.+)$
可能/technology/(\w.+?)会像在 php 中一样工作?
/technology/(\w.+?)