Welcome Guest, Not a member yet? Register   Sign In
Weird problem with CI in Godaddy
#1

[eluser]Unknown[/eluser]
Hi everyone, good nights.

I have a problem with a CI site hosted in Godaddy and need some help to resolve it.

I can see the home page and some others pages, but there is certains pages that I can´t see. Lets explain.

I configured config.php as described in many sites relating CI to Godaddy:

$config['index_page'] = 'index.php?';

$config['uri_protocol'] = 'QUERY_STRING';

and included an htaccess files as:

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

There are some pages (apart of the home page) that are working OK, under the url http://www.mysite.com/index.php?/front/help/index , for example.

But there is a group of pages that are not working. When I move the mouse over the links to those pages, all looks OK, for example: http://www.mysite.com/index.php?/front/s...category/1, but when I click on the link, the url that try to open the broser is (following the exmple) http://www.mysite.com/index.php/front/search/index , and i receive an "No input file specified." error.

Then I manually include in the address bar a "?" after ".php", converting the url to www.mysite.com/index.php?/front/search/index and the page shows OK.

Can you help me with this issue please. I am in a hurry to get this site working and spend some days triyng to figure out a solution but still having the same error.

Thank you in advance for your help.

Regards

Rafael
#2

[eluser]boony[/eluser]
Woof woof,

Not sure if this will help but you may need to remove the forward slash from the uri after the index.php? So that the uri is http://www.mysite.com/index.php?front/search...

This format has worked for a site I has hosted on godaddy in the past.

Boony
#3

[eluser]PravinS[/eluser]
Check $config['enable_query_strings'] in you config file, set it FALSE and remove "?" from index.php

may this work for you
#4

[eluser]Unknown[/eluser]
Thank you very much Boony and PravinS. I tried your suggestions but still not working. I explain.

I modified function site_url, in system/core/Config.php in order to remove the the forward slash after the index.php?. This was reflected in the links, but still teh same problem, some pages woprking and others no. The links of the pages not working now look as http://www.mysite.com/index.php?front/search/category/1 , but when click, the address bar in browser shows http://www.mysite.com/index.php/front/search/index and the same error message. If manually change the forward slash after .php for a ? in the address bar, then it works.

I cheked $config[‘enable_query_strings’] and it is set to FALSE, and tried removing ? from $config[‘index_page’] but then nothing works.

Really I don´t know what mora could be tried.

Thanks people, any other idea?

Regards

Rafael
#5

[eluser]proust007[/eluser]
I am having a similar problem, any ideas/solutions?

Thanks -
#6

[eluser]Tpojka[/eluser]
Try on this topic. Worked for me.
#7

[eluser]proust007[/eluser]
Thanks for the follow up :-)






Theme © iAndrew 2016 - Forum software by © MyBB