Welcome Guest, Not a member yet? Register   Sign In
new user - need help with static pages tutorial
#1

[eluser]Unknown[/eluser]
Using wamp to learn code igniter and tried to get the static pages tutorial working and no joy.

My install directory is:

c:/wamp/www/codeigniter/

Here is config.php:

$config['base_url'] = '127.0.0.1//codeigniter/';

Apache logs:

"GET //codeigniter/index.php/pages/view HTTP/1.1" 404 1187

[client 127.0.0.1] File does not exist: C:/wamp/www/codeigniter/pages

I realize I'm probably being a knucklehead, thanks for your patience with a new user.


#2

[eluser]InsiteFX[/eluser]
Try:
Code:
$config['base_url'] = 'http://localhost/codeigniter/';

You can also leave do like this and CodeIgniter will try to figure out the URL.
Code:
$config['base_url'] = '';

Please use code tags when posting code!
#3

[eluser]Unknown[/eluser]
Thanks so much.

I traced it to using bad url cached up. Random new user mistake.

Code:
127.0.0.1//codeigniter/blah  (bad)
versus
Code:
127.0.0.1/codeigniter/blah (good)







Theme © iAndrew 2016 - Forum software by © MyBB