change "localhost" to IP

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Stefan

change "localhost" to IP

Post 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
cyberman

Re: change "localhost" to IP

Post by cyberman »

Please look to config.php - there are IMHO all needed preferences available  ::).
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: change "localhost" to IP

Post 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.
Stefan

Re: change "localhost" to IP

Post 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
red raven

Re: change "localhost" to IP

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”