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>