2013-03-15 204 views
1

我正在www.quippoauctions.com网站上工作,我正面临着一个问题。我有一个URL重写问题

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

我想告诉这个URL作为

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 

回答

0

试试这个

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

OR

RewriteRule ^auctiondetails/1134/demo_auction_for_training_purpose.html$ index.php?do=auctiondetails&id=1134 [L] 
+0

我有试试这个,但不能正常工作,它会给404 Not Found错误 – 2013-03-15 08:43:01