我有一个可以有两个元素的url : 1.类型2.位置。以下是不带格式的url:
list-hotels-ai.php我想用htaccess重写url,但我遇到了一个问题。有时url会有:list-hotels-ai.php?c=Cancun或list-hotels-ai.php?c=Cancun&t=AllInclusive
我想将url重写为:list-hotels-ai.php?c=Cancun to cancun-hotels.php list-hotels-ai.php?c=Cancun&t=AllInclusive to all-inclusive-cancun-hotels.php
有没有人知道如何通过htaccess做到这一点?任何帮助都将不胜感激!
发布于 2013-01-17 18:56:13
使用JavaScript创建一个执行重定向的html页面。
https://stackoverflow.com/questions/11403421
复制相似问题