URL在yii中不正常

问题描述 投票:0回答:1

我正在尝试在本地计算机上设置站点。我从实时站点中找到了项目文件。我更改了数据库设置和基本URL。我的主页加载正确。但所有其他url重定向到apache仪表板。enter image description here

这是我的主页。然后我正在尝试加载http://localhost:8080/process.bridge-global.com/Home

它重定向到下一页enter image description here

这是我在config / main.php中的路由

    'urlManager' => array(

        'urlFormat' => 'path',

    'showScriptName' => false,

        'caseSensitive' => false,

        'rules' => array(

            '<controller:\w+>/<id:\d+>' => '<controller>/view',

             array('class' => 'application.components.TeamListRule'),

            'Home' => array('site/Home', 'caseSensitive'=>false),
             '<view:[a-zA-Z0-9-]+>/'=>'landingPreview/landingPage',
            ),
        ),
php yii url-routing
1个回答
0
投票

我认为这是由于您未使用正确的方式访问您的网站,因此您需要在此网址上写URL表格。

localhost / yourfolder / web / index.php / yourController /方法

如果仍有问题请告诉我

© www.soinside.com 2019 - 2024. All rights reserved.