Page 1 of 1

Subdomain problem

Posted: Mon Nov 24, 2008 7:23 am
by raveX
Hello,
I have installed CMS Made Simple into mysite.com/otherSite and assigned that sub directory a domain name OtherSite.com.
Now, I'm making menu in html as a part of template and i'm trying to make links like that: Link 1.  But instead of going to OtherSite.com/index.php?page=link1, it is redirecting to mysite.com/OtherSite/index.php?page=link1. Why does it do that and how can I fix it? Normally if you do it in html - it works just fine.
Thank you.

Re: Subdomain problem

Posted: Mon Nov 24, 2008 10:36 pm
by Mantlet
If you use the menu from CMSMS, it takes its domain settings straight from the config file I suppose. So what you'd like to do is check your config file for this line:

Code: Select all

#-------------
#Path Settings
#-------------

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.blah.com';
You could try and altering that to othersite.com. However, I can't confirm this solutions as I've never linked one domain to a folder in another domain.

Give it a go, this is easy to roll-back if it doesn't work.

Cheers

Re: Subdomain problem

Posted: Tue Nov 25, 2008 12:20 am
by raveX
Thanks a lot, it worked!

P.S. It was not just CMS menu, but any html menu.