Apache配置URL重定向

Apache配置URL重定向

修改/etc/httpd/conf/httpd.conf文件的内容

<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

<Directory "/var/www">
    AllowOverride All
    # Allow open access:
    Require all granted
        RewriteEngine On
        RewriteRule /task/* /index.html?$1
</Directory>
posted @ 2019-06-22 09:48  zzhaoleiの博客  阅读(9452)  评论(0编辑  收藏  举报