.htaccess PHP伪静态后出现404错误

2024-11-29 01:10:14
推荐回答(2个)
回答1:

RewriteRule ^(.+)\/list\/(.+)\.html$ $1\/list\.php\?uid=$2

转意和斜杠漏写了吧..再看看!

回答2:

RewriteRule ^list/([0-9]+)_([0-9]+)\.html$ list.php?uid=$1&page=$2
RewriteRule ^list/([0-9]+)\.html$ list.php?uid=$1
RewriteRule ^show/([0-9]+)\.html$ content.php?uid=$1