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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM