Page 1 of 1

change "localhost" to IP

Posted: Sun Dec 18, 2005 12:21 pm
by Stefan
Hi there, I am developing my cms locally with xampp and therefore all the links are of course like http://localhost/xyz  How can I change all these links to http://my url/xyz? to make it run on the server?

Regards, Stefan

Re: change "localhost" to IP

Posted: Sun Dec 18, 2005 12:35 pm
by cyberman
Please look to config.php - there are IMHO all needed preferences available  ::).

Re: change "localhost" to IP

Posted: Sun Dec 18, 2005 12:49 pm
by Ted
Yeah.  Just change all of the urls in config.php to the new ip/hostname.  Then go into the admin and click the Clear Cache button in Site Admin->Global Settings.

Re: change "localhost" to IP

Posted: Sun Dec 18, 2005 12:57 pm
by Stefan
Thanks for your help. I had a look into the config.php but didn't want to wish that it would be so easy. Greetings, Stefan

Re: change "localhost" to IP

Posted: Sun Dec 18, 2005 10:02 pm
by red raven
Whenever you set a link do not use a full "quote" like href="http://www.somsite.com/images/img.jpg" but rather relative links like href="./images/img.jpg". This way you can move your content to different sites with a different host name.