首頁  >  文章  >  後端開發  >  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