php - Nginx 帶問號匹配URL
本人現在有個需求是做seo優化,代碼用的yii框架,現在要把部分原來的長鏈接改為短鏈接,對此現在有兩個思路,一個是在PHP裡面做301跳轉,一個是在nginx設定檔做301,問題來了:我在nginx設定檔location裡匹配...
为情所困 2017-07-01 09:12:11 0 1 852
php - yii2 url优化问题
想要对Url进行优化,全部变为路径模式 如:http://xxx.com/topic/index?id=1&type=1转变为:http://xxx.com/topic/index/id/1/type/1 可以通过配置rules: '<controller:\w+>/<action:\w+>/id/&l...
天蓬老师 2017-04-10 16:38:32 0 2 404