1

我在 www.quipoauctions.com 网站上工作,我遇到了一个问题。我有一个

网址:http://www.quippoauctions.com/index.php?do=auctiondetails&id=1134

我想将此网址显示为

http://www.quippoauctions.com/auctiondetails/1134/demo_auction_for_training_purpose.html

在 .htaccess 文件 acn 的帮助下,任何人都可以帮助我

我有一个正在编写的 htaccess 文件

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^auctiondetails/(.*)/(.*).html$ ?do=auctiondetails&id=$1
4

1 回答 1

0

尝试这个

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/(.*)/demo_auction_for_training_purpose\.html$ /index.php?do=$1&id=$2

或者

RewriteRule ^auctiondetails/1134/demo_auction_for_training_purpose.html$ index.php?do=auctiondetails&id=1134 [L]
于 2013-03-15T05:49:08.597 回答