Welcome Guest, Not a member yet? Register   Sign In
www.mydomain.com.au does not work with codeigniter
#1

[eluser]megabyte[/eluser]
I have a site to work on that has a .com.au extension and its not allowing me to use CodeIgniter at all. and I have copy and pasted all the files over to another domain changed the $config['base_url'] value and it works fine

I've use CI for at least 25 projects without any problems, but it's not working.

I really need help here please. Smile as Codeigniter is my lifeline these days.
#2

[eluser]kreitje[/eluser]
Please explain to us what is not working. Are you getting 404 pages, etc?
#3

[eluser]Kryptonian[/eluser]
What is the error code? Is it simply a blank page without errors?
#4

[eluser]George Ornbo[/eluser]
Need an error message please - "it doesn't work" isn't much help!
#5

[eluser]Yunus Khan[/eluser]
Please send your code or exact error message.
#6

[eluser]jkevinburton[/eluser]
I do not know why CI doesn't adopt this method but i ALWAYS change my base_url to this:

Code:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";

you could always do more work on it, like detecting the protocol.
#7

[eluser]Derek Allard[/eluser]
[quote author="[CoDeR]" date="1209063588"]I do not know why CI doesn't adopt this method but i ALWAYS change my base_url to this:

Code:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";

you could always do more work on it, like detecting the protocol.[/quote]

Unfiltered server vars?
Code:
$this->input->server();
#8

[eluser]_asdf[/eluser]
[quote author="[CoDeR]" date="1209063588"]
Code:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";
you could always do more work on it, like detecting the protocol.[/quote]Beyond the trusting the data issue, thats pretty ugly code to go in a user's config by default, and fails to take account of the actual directory where the installation might reside (hint: not web root). There's a number of hacks on the forums/wiki which do scheme/host etc sniffing, but they're ugly as sin and greatly decrease the readability of a fairly important config variable.

So, no thanks.
#9

[eluser]megabyte[/eluser]
I am just getting a blank page.

If I take the entire sub folder I am using and drop it on another server with a .com domain then everything works just fine.

I have tried all the possible suggestions in the config file for


Code:
$config['uri_protocol']    = "AUTO";

and every other combination you can try inside the config file.

The only thing I did get is a "dissallowed characters in the url message" if I tried to add a bunch of crap to it just to see what happened.

I've probably installed CI at least 20 times now on several servers and never had an issue.
#10

[eluser]Derek Allard[/eluser]
blank pages almost always mean PHP error, but errors are suppressed. Try getting errors to show and that'll help.

You may be able to force errors with
Code:
error_reporting(E_ALL);
ini_set('display_errors', 1);

for a test controller.




Theme © iAndrew 2016 - Forum software by © MyBB