Page 1 of 1

[Solved] Problems with wrong url in the browsers addressbar

Posted: Fri Oct 15, 2010 7:14 pm
by Tomten
CMS version: 1.8.2
Apache version: 2.2.16
PHP version: 5.3.3

Problem:
I have 3 virtual hosts on the server.
www.company1.com
www.company2.com
www.company3.com

Company3 is the only one using CMS.
The other 2 works as intended.
Company3 works as far as the presentation of the site.
When I type in www.company3.com the browsers addressbar shows that when I get there.
But if I click on a link the address shown is: www.company1.com/company3/index.php?page=thepage I requested.
The wwwroot was made a long time ago when there was only one site hosted, so company1 is directly int the wwwroot, the other 2 are in separate directories underneath the root so the link is probably correct, but not nice.

Now I'm not really sure if this is a CMS, PHP or Apacheproblem. I have googled and read much about pretty url:s but not too sure if thats the problem here.

And I have troble googling for the problem in a way that makes sense for the searchengine methinks.

Anyone knows what I am missing or can point me in the right direction?

Re: Problems with wrong url in the browsers addressbar

Posted: Fri Oct 15, 2010 7:19 pm
by Rolf
Hi Tomten, welcome here.

Did you check the root_url and the server paths in the config.php yet?

grtz. Rolf  :)

Re: Problems with wrong url in the browsers addressbar

Posted: Fri Oct 15, 2010 8:09 pm
by Tomten
No I did not.  :-[

So easy when you know.

Thanks a lot!