首页  >  文章  >  后端开发  >  URL rewrite为啥会错呢

URL rewrite为啥会错呢

WBOY
WBOY原创
2016-06-13 12:49:13796浏览

URL rewrite为什么会错呢?

RewriteEngine On
RewriteBase /forum
RewriteRule ^((Index|List|Content|admin|Vote|Message|Favor).*)$ index.php/$1


提示
Not Found

The requested URL /forum/List-index-f-2.shtml was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

但是我写
RewriteRule 1.php 2.php  又是对的,令人费解


------解决方案--------------------
请确认RewriteBase  路径是否正确。
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn