仅在nginx中重写域的根

仅在nginx中重写域的根

我已经运行YOURLS服务器来托管我公司的短网址,以便我们可以为客户提供简短的URL.我正在使用nginx,对于域的root,如果他们没有使用正确的短网址,我想重定向到我们的网站.因此,example.com / 218a重定向到短网址所指向的内容,但是example.com会访问我们的网站@ d

从Apache到Nginx的大括号({和})重写规则.

从Apache到Nginx的大括号({和})重写规则.

我有这个规则成功地在apache上工作但返回错误或nginx:rewrite ^/saison-([0-9]{1})$/pages.php?cat_page=saison-$1season=$1 last; rewrite ^/saison-([0-9]{1})/([a-z0-9-]+)$/evenements.php?season=$1

nginx要怎么配置rewrite才能运行vephp、yii和thinkphp等MVC框架?

nginx要怎么配置rewrite才能运行vephp、yii和thinkphp等MVC框架?

介绍《nginx要怎么配置rewrite才能运行vephp、yii和thinkphp等MVC框架?》开发教程,希望对您有用。

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部