Nginx matching URL with question mark
I now have a need to do SEO optimization. The code uses the Yii framework. Now I need to change some of the original long links into short links. I have two ideas for this. One is to make a 301 jump in PHP, and the other is to make a 301 jump in PHP. The nginx configuration file does 301, and here c...
为情所困 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