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>
上一篇:wampserver apache 403无权限访问 You don't have permission to access /index.html on this server


下一篇:wampserver2.5局域网公网IP访问配置