Welcome Guest, Not a member yet? Register   Sign In
Codeigniter with Hostgator and PHP 5.4
#1

[eluser]Unknown[/eluser]
Hi there,

I'm quite desperate. I have a CI site on Hostgator that works with php 5.3 but completely fails with php 5.4, as soon as I specify
Code:
AddType application/x-httpd-php54 .php
in my .htaccess file. I have seen other similar topics on this forum but haven't been able to fix things.

Here is my .htaccess file:
Code:
Options -Indexes
RewriteEngine on
RewriteRule ^$ http://stage.mydomain.com/app [L]
RewriteCond $1 !^(index\.php|assets/|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
AddType application/x-httpd-php54 .php

Without the last line: works fine. With it: error 404 for all URLs that depend on CI.

After checking with Hostgator mod_rewrite is there, my account can get php 5.4 so it's not a failure on their side.

I have tried to change $config['uri_protocol'] to every single option, without any success.

I hope one of you has encountered this type of problem before because I don't know what to try anymore...

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB