2013-03-15 215 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