CodeIgniter is not working on Goddady server |
[eluser]cmgmyr[/eluser]
Hey all, One of my clients insisted on hosting with GoDaddy instead of me, and now I'm having some issues that are hopefully quick fixes. I have followed this: http://codeigniter.com/wiki/Godaddy_Installaton_Tips/ to get everything up and running, but I can't get off the first page. When you click links you see the URL changing but the page doesn't go to the correct file. My htaccess is: Code: # Deny OR Allow Folder Indexes. Since the site isn't live yet it is in the "new" directory. Any help is greatly appreciated. Thanks, -Chris
[eluser]louis w[/eluser]
I am in the midst of setting a client up on Go Daddy too. I can tell you this - I will never do it again. What a headache. I have it half working. Two things to note. Make sure you have $config['uri_protocol'] = "QUERY_STRING"; in the config And change your rewrite to: RewriteRule (.*)\.php$ index.php?$1 Notice the ?... it appears Go Daddy does not like the normal way that CI passes the uri (index.php/my/page) so this will pass it instead as index.php?my/page Another thing to know is that any changes to htaccess "might not take effect for up to an hour" which makes debugging a problem VERY HARD.
[eluser]louis w[/eluser]
To update you on my situation. This is my htacces: Code: Options -MultiViews +FollowSymLinks Requests to /test.php successfully map to my index Requests to /test DO NOT redirect It appears that requests to a directory will not map, but requests with an extension will. I called Go Daddy and the tech looked around a bunch. He even spoke with a higher level support person. They decided that it appears to be some kind of server site configuration or security restriction which is causing the problem - nothing I did. They wanted to send the ticket up to a higher level tech (who I was not allowed to speak to on the phone). I would get a response from them anywhere from 24 to 72 hours later. Long story short - GO DADDY SUCKS. I am switching hosts. This is absurd.
[eluser]wiredesignz[/eluser]
This htaccess will most likely work for you and allows you to use both segments and query strings. http://ellislab.com/forums/viewthread/96347/ Add your own final RewriteCond{s) to suit.
[eluser]louis w[/eluser]
I tried this on my client's GoDaddy shared account and it did the same as my previous attempts. Urls with extensions work fine, but directories do not get re-written and instead see the "Ooops" page (even though my setting say not to use to GoDaddy custom 404 page). To update my previous post. Over 24 hours later I got this repose: Quote:... I am moving my client off of GoDaddy next week. Any time a client tells me they use this host we will be requiring them to switch to a more competent host being we upload anyhting.
[eluser]jamie young[/eluser]
FYI, I just went though this GoDaddy nightmare and got this .htaccess file to work. It was a lot larger since I was adding in everything that I could find that anyone has ever said to make it work. Once I got it working, I started removing entries to see what the minimum needed was, below is what I ended up with. It is important to note I had to remove all GET requests that I was using, converting them all to POST, that and the .htaccess below seemed to be the magic for me to have a CI install working on GoDaddy servers. Code: <IfModule mod_rewrite.c> In my config.php, index_page is blank and uri_protocol is AUTO BTW, after finding this thread I tried out what wiredesignz linked in comment #3. It is a better solution than what I have above and works just fine on GoDaddy server.
[eluser]louis w[/eluser]
I have a feeling there must be differences in server platform and configuration between what my client had and you. Nevertheless, I was less then impressed with GoDaddy's capabilities and service. I will never use them again and steer any client in another direction.
[eluser]paulon[/eluser]
i got a same problem once in godaddy.com but i already fix it. if you have .htaccess change your $config['uri_protocol'] = "REQUEST_URI"; $config['index_page'] = ""; and the .htaccess Code: # Deny OR Allow Folder Indexes. it works on me.. hope it helps. please note that the problem here is not in godaddy.com but its in your script... |
Welcome Guest, Not a member yet? Register Sign In |