Hi
We have three sites on one multi site server all are version 1.12.1
Main site in root.
Site 1 in sub folder.
Site 2 in sub folder.
My question is when we point the domain names using addon domain feature to the sub folder the site is displayed correctly but the URL showing is.
http://www.mysite.com/Site 1 or http://www.mysite.com/Site 2
I would like the URL to show as http://www.Site 1 or http://www.Site 2 so that the sites look totally independent.
Can you tell me if in someway this is possible.
Thanks
Sites in sub folders
Re: Sites in sub folders
Actually this is not related to CMSMS.
It can be done but probably it's a matter of proper configuration of webserver. You might want to ask your hosting provider for advice (or perhaps they are willing to set things up for you).
Rewrite Rules in .htaccess can do the job too (if supported by your web server). But again, it's not cmsms related. If you get it to work with a static .html file it should work with cmsms too.
It can be done but probably it's a matter of proper configuration of webserver. You might want to ask your hosting provider for advice (or perhaps they are willing to set things up for you).
Rewrite Rules in .htaccess can do the job too (if supported by your web server). But again, it's not cmsms related. If you get it to work with a static .html file it should work with cmsms too.
Re: Sites in sub folders
Hi
I had already spoken to my hosting provider and their response was as follows. I was hoping for an easier solution. It appears the sites are in somewhat connected.
-------------
I think that you may be getting that error as the mysite.org.uk site was made using a CMS that has an element of URL rewriting.
As the domain for the site is set to mysite.org.uk in the CMS, the CMS rewrites URLs based on the mysite.org.uk domain, and you're accessing it from the site1.org.uk domain, and the two don't match, subsequent URL rewriting fails, causing the error that you're seeing.
Obviously you can't define 2 different site URLs in the CMS, so this does put you in a bit of an awkward position, and the options available would be:
Go back to using a redirection and accept that the URL will change to mysite.org.uk/site1
or
Create a copy of the site for site1.org.uk:
Set a new document root for the site1.org.uk domain
Copy the site files and folders from mysite.org.uk in to this document root
Create a new database for site1.org.uk
Export the mysite.org.uk database, and import it in to the mysite.org.uk database
Change any entries in the database that refer to mysite.org.uk to site1.org.uk
Create a new database user
Add the new user to the database for site1.org.uk
Amend the configuration file that defines the database information in the site1.org.uk document root (or subdirectory thereof) to point to the new database using the new database user, and associated password.
I appreciate that neither are ideal and the latter a reasonable amount of work, but due to the URL rewriting in the CMS there's not really any other option I'm afraid
I had already spoken to my hosting provider and their response was as follows. I was hoping for an easier solution. It appears the sites are in somewhat connected.
-------------
I think that you may be getting that error as the mysite.org.uk site was made using a CMS that has an element of URL rewriting.
As the domain for the site is set to mysite.org.uk in the CMS, the CMS rewrites URLs based on the mysite.org.uk domain, and you're accessing it from the site1.org.uk domain, and the two don't match, subsequent URL rewriting fails, causing the error that you're seeing.
Obviously you can't define 2 different site URLs in the CMS, so this does put you in a bit of an awkward position, and the options available would be:
Go back to using a redirection and accept that the URL will change to mysite.org.uk/site1
or
Create a copy of the site for site1.org.uk:
Set a new document root for the site1.org.uk domain
Copy the site files and folders from mysite.org.uk in to this document root
Create a new database for site1.org.uk
Export the mysite.org.uk database, and import it in to the mysite.org.uk database
Change any entries in the database that refer to mysite.org.uk to site1.org.uk
Create a new database user
Add the new user to the database for site1.org.uk
Amend the configuration file that defines the database information in the site1.org.uk document root (or subdirectory thereof) to point to the new database using the new database user, and associated password.
I appreciate that neither are ideal and the latter a reasonable amount of work, but due to the URL rewriting in the CMS there's not really any other option I'm afraid
Re: Sites in sub folders
CMSMS 1.12.1 is pretty flexible about used domain names (if you do NOT set root_url in config.php).
I still think that .htaccess in root folder could help you accomplish what you want. You can apply specific rules for each domain name. Read about it.
http://webmasters.stackexchange.com/que ... directorie
I still think that .htaccess in root folder could help you accomplish what you want. You can apply specific rules for each domain name. Read about it.
http://webmasters.stackexchange.com/que ... directorie
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Sites in sub folders
As velden said if you can get it to work with static HTML files it's not a CMSMS issue.
As your host said, you have URL rewriting going on. that will mess with your plans. You need to understand how this stuff works (that's why we only ship a SAMPLE file).
As your host said, you have URL rewriting going on. that will mess with your plans. You need to understand how this stuff works (that's why we only ship a SAMPLE file).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.