我可以将 Redirect 301
与 NC 和 L 等标志一起使用吗?
例如:
重定向 301/test.htm/example/test/[NC,L]
我收到服务器错误,但我不确定这是因为重定向 301 不允许在语句末尾使用标志还是其他原因。
最佳答案
您提到的标志与 mod_rewrite 相关,但 Redirect
是 mod_alias 的一部分,并且具有不同的语法。
请参见此处:https://httpd.apache.org/docs/current/mod/mod_alias.html#redirect
关于apache - 带标志的重定向 301,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19034670/