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>
标签:httpd,重定向,URL,granted,AllowOverride,access,conf,Apache,open 来源: https://www.cnblogs.com/zzhaolei/p/11067781.html