![]() |
500 Internal Server Error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: 500 Internal Server Error (/showthread.php?tid=5040) |
500 Internal Server Error - El Forum - 01-02-2008 [eluser]CodeIgniter Fan[/eluser] Hello I am using codeigniter for multiapplication and I have respective rewrite rule in htaccess. But when I upload htaccess file to my host server I am getting 500 Internal server. My htaccess rewrite rule is as follows RewriteEngine On RewriteCond $2 !^(index(|_[^\./]+)\.php|robots|images|js|tools\.txt) RewriteRule ^(admin|partnersearch)(.*)$ index_$1.php/$2 [L] I found this rewrite rule some where in codeigniter forums. For my admin application folder I have respective index file named index_admin.php so when I access this url www.mysite.com/admin it will be rewrite to www.mysite.com/index_admin.php. It is working locally on my computer but not on my host server. So please tell me what is the solution for this. I had checked my host supports mod rewrite. Also when I remove RewriteCond line from htaccess than it is working so please reply what is the solution. 500 Internal Server Error - El Forum - 01-02-2008 [eluser]tonanbarbarian[/eluser] is the host server running apache for starters? Is the rewrite mod enabled on the hosting server? I would be asking your hosting provider to look into this and maybe they can point you to log files that help to determine the problem 500 Internal Server Error - El Forum - 01-02-2008 [eluser]m9dfukc[/eluser] some time ago i had the same problem - the htaccess file worked on the local dev server but on the provider side i became a 500er error. ... my problem was that i created the .htaccess file with notepad++ and i gave that file accidentally a utf8 header. probably you made the same failure? |