I have a regular expression set up now:
我现在有一个正则表达式:
^/technology/(.*)$
It works great for all the subfolders and files. The problem is that I don't want it to redirect when it's only the technology folder, though.
它适用于所有子文件夹和文件。但问题是,当它只是技术文件夹时,我不希望它重定向。
/technology/ FALSE
/technology/something/ TRUE
/technology/something/else/ TRUE
Sorry - I'm a regex newb!
对不起,我是regex newb!
2 个解决方案
#1
3
try this regexp:
试试这个正则表达式:
^/technology/(.+)$
#2
0
May be /technology/(\w.+?)
will work like in php?
可能是/技术/(\w.+?)会像php一样工作?
#1
3
try this regexp:
试试这个正则表达式:
^/technology/(.+)$
#2
0
May be /technology/(\w.+?)
will work like in php?
可能是/技术/(\w.+?)会像php一样工作?