Welcome Guest, Not a member yet? Register   Sign In
500 Internal Server Error
#1

[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.
#2

[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
#3

[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?




Theme © iAndrew 2016 - Forum software by © MyBB