config.php fix
Posted: Sun Mar 15, 2009 11:13 pm
I've found a problem within config.php.
If you're running a server on you're own computer and having a localhost and an ip address where you can enter you're site.
The awesome URL rewriting is doing the ip address or you're localhost in the links in you're cms installation where you installed it from.
My Examples from my server:
http://localhost/nieuwe_school/how-cmsms-works/
OR
http://94.210.63.245/nieuwe_school/how-cmsms-works/
So this can be fixed in config by replacing the following line 77:
$config['root_url'] = 'http://localhost/nieuwe_school';
With
$config['root_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/nieuwe_school';
Or may be it's better to render the url whole dynamicly
May be this can be a little tweak for the developers on CMSMS
And if this is fixed than you're root_url is build dynamicly and you're url rewrite engine is working wherever you install it.
I gave it a try and it is my first post. So be nice to me(A)
Greetings from a new guy
If you're running a server on you're own computer and having a localhost and an ip address where you can enter you're site.
The awesome URL rewriting is doing the ip address or you're localhost in the links in you're cms installation where you installed it from.
My Examples from my server:
http://localhost/nieuwe_school/how-cmsms-works/
OR
http://94.210.63.245/nieuwe_school/how-cmsms-works/
So this can be fixed in config by replacing the following line 77:
$config['root_url'] = 'http://localhost/nieuwe_school';
With
$config['root_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/nieuwe_school';
Or may be it's better to render the url whole dynamicly
May be this can be a little tweak for the developers on CMSMS
And if this is fixed than you're root_url is build dynamicly and you're url rewrite engine is working wherever you install it.
I gave it a try and it is my first post. So be nice to me(A)
Greetings from a new guy