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>
- 上一篇 »HTTP中的重定向和请求转发的区别
- 下一篇 »Linux 下的输入输出和重定向示例