1

This URL 1 is not working URL 2 is working fine. So the condition should be "after byod.php remove ampersand and put question mark" only for byod.php not for other php scrips

1.   http://10.168.4.253/byod.php&redirect=www.google.com.sg/search?q=cars........

2.   http://10.168.4.253/byod.php?redirect=www.google.com.sg/search?q=cars........

Is this possible using htaccess

4

2 回答 2

1

就像您问的上一个问题一样,如果您只希望它适用于byod.php您需要在匹配中指定:

RewriteRule ^byod\.php&(.*)$ /byod.php?$1 [L,QSA,R=301]  
于 2012-07-31T02:03:40.097 回答
0

您可能应该mod_rewrite为您的网络服务器挖掘或类似的工具。

于 2012-07-31T00:20:35.830 回答