.htaccess - Removing index.php in CodeIgniter resulting 5xx server error -


suppose have following url

subdomain.example.com/myfolder

where "myfolder" root folder of ci installation (where application folder located).

i have following .htaccess (credits fabdrol & elliothaughin):

<ifmodule mod_rewrite.c>     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] </ifmodule>  <ifmodule !mod_rewrite.c>     errordocument 404 /index.php </ifmodule> 

when ever try access website such as:

subdomain.example.com/myfolder/controller/etc... 

it returns 5xx internal server error. if add

subdomain.example.com/myfolder/index.php/controller/etc... 

it works perfectly. pretty sure there wrong .htaccess don't see problem is.

could please me fix htaccess? thx

* fyi * tried change following line on config.php

$config['index_page'] = ''; // set index.php $config['uri_protocol'] = 'request_uri' // set auto 

when change the:

rewriteengine on rewritebase /myfolder 

it not return 500 however, not display @ all.

just give information structure of myfolder

public_html ---|    |    |--mysubdomain_folder    |     |    |-----|--myfolder (my website index.php, .htaccess , application folder are). 

rewriteengine on rewritecond $1 !^(index\.php|images|robots\.txt|css) rewriterule ^(.*)$ ./index.php/$1 [l] 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -