0

我想重写 index.php 的每个路径

使用此代码:

RewriteEngine on
RewriteRule ^(.*)$ index.php?_url_=$1 [L,QSA]

但是当我输入无效地址时,我的页面重定向到 404.shtml(我猜)

例如,当我输入:

1:http : //sitename.com/image/a.png(存在)_url_是image/a.png

2:http : //sitename.com/nofolder/a.png(不存在)_url_是404.shtml

当我将所有内容重写为现有的 index.php 时,这怎么可能,但我仍然得到 404?

4

0 回答 0