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.
我为我的脚本制定了一个重写规则,但我有一个小问题我想在规则中添加(:,-,_)但我总是出错
我用这个代码
重写规则 ^([0-9a-zA-Z]{1,200})$ go.php?s=$1 [L]
该代码允许使用 az 和 AZ,我想将这些符号添加到规则中
符号是:
: , - , _
到那个代码。
请帮助我更正该代码,我会为此感到高兴
这是你试过的吗?下面的规则将三个字符 ( :, _, -) 添加到您的模式中:
:
_
-
RewriteRule ^([0-9a-zA-Z:_-]{1,200})$ go.php?s=$1 [L]
你只需要为它更新一点你的正则表达式。 更新的正则表达式将是:^([0-9a-zA-Z:_-]{1,200})$
^([0-9a-zA-Z:_-]{1,200})$