Hej
jeg har oprettet et lille site, men i url'en kommer selve serveren på webhotellet med:
http://87.238.248.114/ik-design.dk/httpdocs/
Den burde hedde: http://www.ik-design.dk/home
eller
http://www.ik-design.dk/ - et eller andet -
men uden 87.238..... osv.
Hotel-ejeren siger det er en opsætning fejl i cmsms, men jeg kan ikke finde en fejl. Kan fejlen ligge i config.php?
Kan I hjælpe?
(fixed) Problem med URL
Moderator: Silmarillion
(fixed) Problem med URL
Last edited by Silmarillion on Sat Jan 09, 2010 3:30 pm, edited 1 time in total.
Re: Problem med URL
Sorry for posting in English, but my Danish is very bad....
It could be that you installed CMSMS using the ip-address. Than the ip-address will be written in the config.php and when it is set there as root_url, then all the pages, when clicked will get the ip as the root.
You could modify the config.php and replace the ip-address with the domain-name.
Ronny
It could be that you installed CMSMS using the ip-address. Than the ip-address will be written in the config.php and when it is set there as root_url, then all the pages, when clicked will get the ip as the root.
You could modify the config.php and replace the ip-address with the domain-name.
Ronny
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
Re: Problem med URL
jeg er helt sikker på RonnyK har fat i det rigtige. Led efter IP-nummeret i config.php og erstat med domænenavnet...
m.
m.
Re: Problem med URL
Thank you.RonnyK wrote: Sorry for posting in English, but my Danish is very bad....
It could be that you installed CMSMS using the ip-address. Than the ip-address will be written in the config.php and when it is set there as root_url, then all the pages, when clicked will get the ip as the root.
You could modify the config.php and replace the ip-address with the domain-name.
Ronny
But I have tried this and as you can see here: www.ik-design.dk
I lost the connection to the CMS
But you are right, the site was moved by the web-hotel after installation because it did not work in the first server it was placed on.
/PoulErik
Re: Problem med URL
and with the ip-address in the config.php it did work?
If a site is moved to another server, you could also run the installer again, where you UNCHECK the 'create tables' and UNCHECK the "install default content". UNCHECKING these 2 will run the installer, and create a new config.php, but not overwrite the tables...
So that is an option as well, but be sure to NOT CHECK these 2 ticks in the installer...
BTW, I think that you still have a non-modified URL in the config.php. There are 4 places IIRC, that should be updated..
Ronny
If a site is moved to another server, you could also run the installer again, where you UNCHECK the 'create tables' and UNCHECK the "install default content". UNCHECKING these 2 will run the installer, and create a new config.php, but not overwrite the tables...
So that is an option as well, but be sure to NOT CHECK these 2 ticks in the installer...
BTW, I think that you still have a non-modified URL in the config.php. There are 4 places IIRC, that should be updated..
Ronny
Last edited by RonnyK on Tue Jan 05, 2010 7:17 pm, edited 1 time in total.
Re: Problem med URL
I reinstall like you advice me to and it worked - thank you
)
