我如何制作:
http://ecorustic.com/model.php?category=Destinations&name=destindere&id=138
显示为:
http://ecorustic.com/Destinations/destindere
给用户,但页面仍然指向:
http://ecorustic.com/model.php?category=Destinations&name=destindere&id=138
? 我尝试了以下代码,但链接保持不变:
RewriteEngine On
RewriteRule ^[A-Za-z-]+/[A-Za-z-]+/[A-Za-z-]+/([A-Za-z0-9-]+)/?$ model.php?category=$1&name=$2&id=$3