我正在www.quippoauctions.com网站上工作我面临一个问题。我有一个
url:http://www.quippoauctions.com/index.php?do=auctiondetails&id=1134
我想将此网址显示为
http://www.quippoauctions.com/auctiondetails/1134/demo_auction_for_training_purpose.html
在.htaccess文件的帮助下,任何人都可以帮助我
我有一个htaccess文件,我在写
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^auctiondetails/(.*)/(.*).html$ ?do=auctiondetails&id=$1
答案 0 :(得分: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]