我希望得到任何的URL有index.php?route=forum/
在他们匹配部分
范例网址过滤所有的比赛有:
http://test.codetrove.com/index.php?route=forum/forum
http://test.codetrove.com/index.php?route=forum/forum_category&forum_path=2
所以我需要如果匹配包含index.php?route=forum/
,那么http和domain可以是任何类似http或https或任何域的匹配。
任何想法的?
是有没有简单的检查,如果$ _GET [ '路线']开头'forum'理由吗? – hexblot 2013-03-13 15:42:26
if(strpos($ url,“index.php?route = forum /”)!== false)// if if found == true – Sturm 2013-03-13 15:42:27
preg_match()怎么样? – egig 2013-03-13 15:43:11