Welcome Guest, Not a member yet? Register   Sign In
Dreaded 1&1 Web Hosting Nightmare

Hello Fellow Code Igniter enthusiasts,

I just finished development on a site for a client of ours (http://thefireemporium.com/) and launched the site. Not a big deal right? WRONG!! Haha. We built a custom content management system behind the scenes and when I visit the following URL, I get the dreaded 403 Not found (http://thefireemporium.com/admin). Ok, well, after calling the 1&1 tech support, they tell me that I need an index.php or index.html file underneath the admin folder. My question is,,, WHY???. LOL. What about URL rewriting?

Here is my .htaccess file. Now I did some Googling and discovered on a recent post that 1&1 are still working off of PHP4. Can someone confirm/deny this?

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php

Is there some RewriteRule or something I can add to this to make the admin section show up like it should?

Thanks in Advance


Before you get on the wrong track trying to solve this, just want to note that php version should have nothing to do with it.

I'm getting a 'CI' 404 here as well:


Maybe post your routes file as well?

Edit: Well, maybe php version does matter here if it's breaking your Router.php

MY_Router gives an error:

Parse error: syntax error, unexpected '=', expecting '(' in /homepages/45/d193239887/htdocs/wsb4392724501/system/application/libraries/MY_Router.php on line 7

Sorry guys. It won't allow me to delete this post.

No don't post your Router, I meant config/routes.php.
Remove that stuff.


$route["(:any)"] = "$1";
$route["(:any)/(:any)"] = "$1/$2";
$route["(:any)/(:any)/(:any)"] = "$1/$2/$3";


You can probably remove that Router you posted to make this thread readable.

//also use code tags for code


We get a nice slideshow of php errors. Very funny Smile

Is /admin a real directory or is it routed somewhere?

It is a real directory and the url is routed through the root index.php. Then Code Igniter decides where it should go in the application.

FWIW, search "1&1" in the forums. You may find your answer, I see a lot of posts concerning mod_rewrite.

Solved! I moved it to a different provider. Works as it should without hacking the .htaccess file to death.

Theme © iAndrew 2016 - Forum software by © MyBB