CodeIgniter incorrect system path on private server

后端 未结 5 491
半阙折子戏
半阙折子戏 2021-01-06 01:27

codeigniter project when uploaded to server gives me the following error.

Your system folder path does not appear to be set correctly. Please open t

5条回答
  •  时光说笑
    2021-01-06 02:10

    try this .htaccess on root folder

    
        RewriteEngine On
        RewriteBase /
    
        RewriteCond %{REQUEST_URI} ^system.*
        RewriteRule ^(.*)$ /index.php?/$1 [L]
    
        RewriteCond %{REQUEST_URI} ^application.*
        RewriteRule ^(.*)$ /index.php?/$1 [L]
    
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?/$1 [L]
    
    
        ErrorDocument 404 /index.php
    
    

    assumming that index.php is your index page.

    and change in config.php

    $config['index_page'] = '';
    

提交回复
热议问题