2012-02-16 45 views
5

benim codeigniter mükemmel yerel ev sahibi üzerinde çalışmak ama live.my codeigniter çalışmıyor en son version.i de denemek old.it her zaman bana sayfa yönlendirme bulunamadı.codeigniter çalışmıyor canlı sayfada değil sunucuda hata bulunamadı

routes.php ayarı

$route['default_controller'] = "home"; 
$route['404_override'] = ''; 

ben de server.i üzerinde htaccess yüklemek hem linux ve pencere çalıştı olduğunu.

$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST']; //you can also leave blank this CI tend to find this by himself 
$config['index_page'] = ''; 

$config['uri_protocol'] = 'AUTO'; //if not working try one of these: 
    'PATH_INFO'  Uses the PATH_INFO 
    | 'QUERY_STRING' Uses the QUERY_STRING 
    | 'REQUEST_URI'  Uses the REQUEST_URI 
    | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO 

ve henüz çalışmıyor eğer ben pek çok site

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

için kullanmak bu .htaccess bir phpinfo(); kullanmak ve kontrol deneyin:

htaccess

RewriteEngine on 
RewriteCond $1 !^(index\.php|resources|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] 
+0

Yerel ve uzak htaccess satırınız RewriteBase/'nedir? – Gerep

+0

Evet, lütfen '.htaccess' gönderin. – bottleboot

+0

htaccess benim sorumda güncellendi.please this kontrol edin –

cevap

2

Yapabileceğiniz mod_rewrite, enabled

’dür
İlgili konular