Welcome Guest, Not a member yet? Register   Sign In
What version of Apache is required ?
#1

(This post was last modified: 04-03-2015, 06:46 AM by sackbut.)

It's the old story - CI3RC3 works perfectly on my home server, but craps out on the hosting company's hardware, in respect of hiding the index.php file by means of an htaccess file ( you know the one - in the root of the app).

I can reproduce the fault at home if I set 'Allow override none' in httpd.conf - that stops htaccess files from over-riding the main configuration file. But the support staff at my provider say that's got nothing to do with it, and can't offer any better suggestions. They won't even check httpd.conf to confirm that Allow override is set to 'All' They have confirmed that mod-rewrite is on. So I'm stuck. The copy of the app on the hosted server is exactly the same as the one at home, except for the value of base_url in config.php, of course.

Maybe it's Apache version sensitive ?  I don't think so, but I'm desperate for a solution ! So, finally, the question: What version of Apache does CI3 need ? I have 2.4.7 here at home.

Anyone else got any other ideas ?

Thanks Guys !
Reply
#2

(This post was last modified: 04-03-2015, 07:07 AM by GrigoreMihai.)

Try :
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php?/$0 [PT,L]

and in config :
Code:
$config['base_url'] = '';
$config['index_page'] = '';
Reply
#3

What kind of shitty hosting it is that they refuse to give you settings of httpd.conf? Anyway, it does not really matter what Apache is used. Config directive differs between versions, but they all work. Also, you don't need to stop htaccess from working, because general way to hide index.php is through .htaccess...
Reply
#4

In the past I used Apache 2.2.x. Now I use 2.4.x. CodeIgniter works on both.
Reply
#5

Have you tested to just put some garbage text (can be anything) on the first line of you .htaccess on the server? If you do that, your site should throw a 500 Internal Server Error message. If you don't get that, then your server is not reading the .htaccess and you can let the support know that is for sure the issue.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB