1
我有以下網址:Codeigniter:URL無解問題
http://localhost.com/phpdemo/bid/tf/red?
此URL重定向通過這種[$路線[ 'TF /紅?'] = 「ABC /藍」]到以下網址:
http://localhost.com/phpdemo/bid/abc/blue
到目前爲止是沒有問題的。當我用「?」附加一些值時,問題就開始了。如下圖所示:
http://localhost.com/phpdemo/bid/tf/red?a [它總是默認歡迎頁面]
我已經試過follwoing路線:
$route['tf/red?(:any)'] = "abc/blue"
$route['tf/red?:any'] = "abc/blue"
$route['tf/red?(a-zA-Z0-9=)'] = "abc/blue"
我已經嘗試了以下配置設置:
$config['permitted_uri_chars'] = 'a-z A-Z 0-9~%.:_\-';
$config['enable_query_strings'] = FALSE;
$config['allow_get_array'] = TRUE;
我也使用以下方法進行檢查:
$config['enable_query_strings'] = TRUE;
現在Iam無能爲力,無論是用Codeigniter還是我自己都有問題。
有人可以在這方面指導我。
在此先感謝