Subdomain problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
raveX
Forum Members
Forum Members
Posts: 12
Joined: Mon Nov 24, 2008 7:01 am

Subdomain problem

Post 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.
Mantlet
Forum Members
Forum Members
Posts: 114
Joined: Fri Apr 28, 2006 9:42 am

Re: Subdomain problem

Post 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
raveX
Forum Members
Forum Members
Posts: 12
Joined: Mon Nov 24, 2008 7:01 am

Re: Subdomain problem

Post by raveX »

Thanks a lot, it worked!

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

Return to “CMSMS Core”