【问题标题】:Will [a-z]* redirect work in the httpd.conf将 [a-z]* 重定向工作在 httpd.conf
【发布时间】:2011-05-03 07:11:55
【问题描述】:

此重定向是否有效 [a-z]* 到 example.com

即,我想将任何内容重定向到 example.com

谢谢让

【问题讨论】:

    标签: linux apache apache-config httpd.conf


    【解决方案1】:

    .*句点匹配除换行符以外的任何字符。

    但你可能想要的是:

    Redirect permanent / @987654321@

    【讨论】:

    • 我可以把这个添加到 httpd.conf 目录吗?
    • 您可以将其直接添加到 httpd.conf 文件中,或者添加到您的 .htaccess 文件中,具体取决于您想要什么。
    猜你喜欢
    • 2017-12-24
    • 1970-01-01
    • 1970-01-01
    • 2017-02-20
    • 2012-03-08
    • 1970-01-01
    • 1970-01-01
    • 2022-06-15
    • 2017-09-20
    相关资源
    最近更新 更多