我有一个过于严格的重写规则。
RewriteRule ^folder/([^/\.]+)/?$ file.php?$1 [L]
这会将http://www.domain.com/folder/ $variable 重定向到http://www.domain.com/file.php ?$variable HOWEVER.. 如果变量有任何点或斜线,它会失败。我希望它重定向到 http://www.domain.com/file.php吗?即使 $variable 为空或包含任何字符
我有一个过于严格的重写规则。
RewriteRule ^folder/([^/\.]+)/?$ file.php?$1 [L]
这会将http://www.domain.com/folder/ $variable 重定向到http://www.domain.com/file.php ?$variable HOWEVER.. 如果变量有任何点或斜线,它会失败。我希望它重定向到 http://www.domain.com/file.php吗?即使 $variable 为空或包含任何字符