0

这是我的 .htaccess

RewriteEngine on
RewriteBase /

RewriteRule (.*)\.html              $1.php [R=301,L]

ErrorDocument 404 /404.php

wireless.php当我访问时它应该去wireless.html

但奇怪的是404.php当我访问它时wireless.html

wireless.php当我访问wireless1.html, wirelessk.html, , 等时它会转到wireless9.html...

任何想法?谢谢。

4

1 回答 1

0

忘记了^

RewriteRule ^(.*)\.html$ $1.php [L,R=301]
于 2013-11-01T03:53:33.880 回答