Dreaded 1&1 Web Hosting Nightmare |
[eluser]44kyle[/eluser]
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> <IfModule !mod_rewrite.c> ErrorDocument 404 index.php </IfModule> Is there some RewriteRule or something I can add to this to make the admin section show up like it should? Thanks in Advance Kyle
[eluser]Madmartigan1[/eluser]
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: http://thefireemporium.com/index.php/admin Maybe post your routes file as well? Edit: Well, maybe php version does matter here if it's breaking your Router.php
[eluser]Rogier[/eluser]
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
[eluser]Madmartigan1[/eluser]
No don't post your Router, I meant config/routes.php. Remove that stuff.
[eluser]44kyle[/eluser]
<?php $route["(:any)"] = "$1"; $route["(:any)/(:any)"] = "$1/$2"; $route["(:any)/(:any)/(:any)"] = "$1/$2/$3"; ?>
[eluser]Madmartigan1[/eluser]
You can probably remove that Router you posted to make this thread readable. Code: //also use code tags for code http://thefireemporium.com/outdoorliving/somerandomjunk We get a nice slideshow of php errors. Very funny ![]() Is /admin a real directory or is it routed somewhere?
[eluser]44kyle[/eluser]
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.
[eluser]Madmartigan1[/eluser]
FWIW, search "1&1" in the forums. You may find your answer, I see a lot of posts concerning mod_rewrite.
[eluser]44kyle[/eluser]
Solved! I moved it to a different provider. Works as it should without hacking the .htaccess file to death. |
Welcome Guest, Not a member yet? Register Sign In |