mod rewrite - Remove index.php from URL in Codeigniter -


i have done lots of time. stuck here again (in different server) , can not figure out issue.

completed htaccess editing

<ifmodule mod_rewrite.c> rewriteengine on rewritebase /glt.me/ci/  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ /glt.me/ci/index.php/$1 [l] </ifmodule>  <ifmodule !mod_rewrite.c> errordocument 404 /index.php </ifmodule> 
  • rewrite module enabled (as per customer care perons says)
  • error :

    internal server error

    the server encountered internal error or misconfiguration , unable complete request.

    please contact server administrator, cgiadmin@yourhostingaccount.com , inform them of time error occurred, , might have done may have caused error.

    more information error may available in server error log.

    additionally, 500 internal server error error encountered while trying use errordocument handle request.

test case :

http://glt.me/ci/test http://glt.me/ci/index.php/test 

this simple way , works fine removing index.php url

rewriteengine on rewritecond $1 !^(index\.php|uploads|css|js|lib|img|bootstrap|robots\.txt) rewriterule ^(.*)$ /manage/index.php/$1 [l]  instead of manage put own application folder name. 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -