Welcome Guest, Not a member yet? Register   Sign In
Help with GoDaddy and URI
#1

[eluser]Unknown[/eluser]
I can't seem to get CodeIgniter (fresh installation) set up properly on GoDaddy. I tried creating a new function inside of the 'wecome' controller. But I can't access it anywhere.

http://domain.com/test (No response) <- why doesn't this work
http://domain.com/index.php/welcome/test (No response) <- why doesn't this work

And just to give you an idea of how the default welcome page resolves:

http://domain.com/ (resolves to welcome page aka 'index' function)
http://domain.com/index.php/ (resolves to welcome page aka 'index' function)
http://domain.com/index.php/welcome (No response) <- why doesn't this work?
http://domain.com/index.php/welcome/index (No response) <-why doesn't this work?

How can I get this set up properly? I've been told to play around with the:

$config['index_page'] = "";
$config['uri_protocol'] = "";

and

.htacess

However, the approach that everyone suggests using is a trial and error approach. Can someone help me with a systematic way to solve/debug this problem?
#2

[eluser]toopay[/eluser]
[quote author="ryeguy_24" date="1303319063"]However, the approach that everyone suggests using is a trial and error approach. [/quote]

If we deal with environment issues, i believe there is no SUPER-DUPER configuration (especially htaccess) which work in ANY Condition! For example
Code:
# In window or mac, this ussually work fine
RewriteRule ^(.*) index.php?/$1 [L]
# But in (some) Linux server, above setting will generates Internal Server Error
# And it will need something like this
RewriteRule ^(.*) index.php/$1 [L]
# or even this
RewriteRule ^.* index.php/$1 [L]
I have done, create app (with CI or other framework), for several company, in several server environment(Win, Mac, some Linux server) and even it works fine in the development environment (my local server), i face the truth that i have to set up the htaccess and do, what you called 'trial and error', in deployment process!

Thats why what you called 'trial and error' is the only way to get it fixed! Even you get an assistance from the SUPER-DUPER system administrator, then you will see he/she doing the same!

And why you think that everyone here is hosted their app in GoDaddy? What make it special?
#3

[eluser]toopay[/eluser]
this thread may give you a hint about how environment issue,can force you to do what you called 'TRIAL AND ERROR'!




Theme © iAndrew 2016 - Forum software by © MyBB