codeigniter没有在godaddy windows主机上工作(plesk)

时间:2017-01-28 08:01:48

标签: php codeigniter plesk windows-hosting

我的codeigniter项目在本地xamp上正常工作,但是当我在godaddy窗口托管(plesk)上托管它时,它总是加载默认控制器。 下面是我的配置文件:

$config['base_url'] = 'my_site_url';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';

和web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Rewrite to index.php">
                    <match url="index.php|robots.txt|images|test.php" />
                    <action type="None" />
                </rule>
                <rule name="Rewrite CI Index">
                    <match url=".*" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php/{R:0}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>  

0 个答案:

没有答案