如何使用cakephp和nginx配置动态前缀?

时间:2015-08-10 10:34:01

标签: php cakephp nginx webserver

我有一个链接http:// example.com/u12/home/index 在这个链接中,我有一个PHP源代码:

    <?php echo $this->Html->link(__('Contact'), array( 'controller' => 'public', 'action' => 'contact')) ?>

它会显示重定向到http://example.com/public/contact的标签“联系

我想将“联系”标签重定向到http://example.com/u12/public/contact(在网址上保留 u12 ),我该怎么做通过配置Nginx? (我可以通过编辑我的源代码来实现,但我们有没有通过配置Nginx的方式?)

谢谢!

0 个答案:

没有答案