Welcome Guest, Not a member yet? Register   Sign In
Problems using base_url
#11

[eluser]Daniel Moore[/eluser]
[quote author="skoots" date="1241774542"]Frustratingly enough it's the correct url:
Code:
http//localhost.test/
[/quote]

When you echo the base_url and it displays as "http//" instead of "http://" then you've typed in your base_url wrong in your config. You missed the colon, which is why CI is guessing your base_url based on the location of your index.php, then tacking your definition onto it.

In essence, your definition was invalid. Try going back to your code and adding the colon.

Sorry I didn't answer this sooner. We had a storm come through here and it knocked out our power for a couple of days, and I'm trying to catch up on lost work.
#12

[eluser]Dam1an[/eluser]
@Daniel: Now that you've pointed it out, it seems so obvious (then again it always is with hindsight)
#13

[eluser]skoots[/eluser]
Thanks to all who replied.

Fixing the base_url in the config file solved the problem. In the mean time I was able to learn a lot about Apache...all the while overlooking the obvious!
#14

[eluser]Thorpe Obazee[/eluser]
[quote author="Daniel Moore" date="1241813730"]
When you echo the base_url and it displays as "http//" instead of "http://" then you've typed in your base_url wrong in your config. You missed the colon, which is why CI is guessing your base_url based on the location of your index.php, then tacking your definition onto it. .[/quote]

omg. And I didn't notice that :|




Theme © iAndrew 2016 - Forum software by © MyBB