2014-10-06 10 views
5

में codeigniter से index.php को कैसे निकालें CodeIgniter के लिए फास्ट-सीजीआई पर्यावरण में mod_rewrite के साथ समस्याएं हैं। मेरे .htaccess इस तरह दिखता है:फास्ट-सीजीआई

DirectoryIndex index.php 
    RewriteEngine on 
    RewriteCond $1 !^(index\\.php|images|css|js|robots\\.txt|favicon\\.ico) 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ /index.php?$1 [L] 

लेकिन मैं एक त्रुटि 'नहीं इनपुट फ़ाइल निर्दिष्ट' मिला है।

#RewriteRule ^(.*)$ /index.php?/$1 [QSA,L] 

मेरे समस्या मैं अभी भी यूआरएल पर index.php है कि अगर मैं विन्यास फाइल बदला है:

मैं

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} -f [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.* - [L] 

RewriteCond $1 !^(index\.php|images|robots\.txt) 
#RewriteRule ^(.*)$ /index.php?/$1 [QSA,L] 

<IfModule mod_php5.c> 
    RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule> 

<IfModule !mod_php5.c> 
    RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 

यह भी इस एक के साथ ही काम करता है के लिए बदल दिया $ config ['index_page'] = 'index.php' से एप्लिकेशन/config/config.php; $ config ['index_page'] = ''; मेरे पास एक अलग त्रुटि है।

मैं क्या गलत करता हूं?

+3

को .htaccess

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

और config.php फाइल परिवर्तन में कोड जोड़ने , मैंने $ config ['uri_protocol'] = 'ऑटो' बदल दिया; $ config ['uri_protocol'] = 'REQUEST_URI' तक; – nandoC

उत्तर

0

मैं आवेदन/config/config.php पर समाधान नहीं मिला

$config['index_page'] = 'index.php'; 

$config['index_page'] = ''; 
संबंधित मुद्दे