>  기사  >  백엔드 개발  >  URL rewrite为啥会错呢

URL rewrite为啥会错呢

WBOY
WBOY원래의
2016-06-13 12:49:13795검색

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으로 문의하세요.