Page 1 of 1

Installing cms made simple in own folder

Posted: Tue Mar 05, 2013 2:54 pm
by Janie0183
I'm trying to retrofit my site with CMS Made Simple.

There are a lot of files and folders in my site, and a lot in cms made simple. Therefore, to keep things simple, and to avoid changing or deleting things, I want a cmsms directory, and have people access my site normally, as they always have, via document root.

Is there a way to make the path to the site be normal, while keeping all the cmsms files together in their own directory? I've seen other cms's with this ability, and assume you do too, but after searching, don't see how, or even that it can't be done.

Hoping it is. :)

Re: Installing cms made simple in own folder

Posted: Tue Mar 05, 2013 5:53 pm
by Dr.CSS
Put it in yoursite.com/NewFolder then you can access it using that URL, if you want to make it just like the other then use it for the actual site, make all changes in yoursite.com/NewFolder once you are done move all the folders/files to /root/ and change the config file paths and you will have a CMSMS driven site...

Re: Installing cms made simple in own folder

Posted: Fri Mar 08, 2013 6:35 pm
by Wishbone
He meant that he wanted CMSMS to be in a folder, but access it somehow through "http://mysite.com without specifying the folder.

There's no way to do this as far as I know. I've never needed to do this. I always leave the document root to CMSMS, and have all the site files in /uploads to avoid the clutter.

Re: Installing cms made simple in own folder

Posted: Fri Mar 08, 2013 7:27 pm
by calguy1000
Most host control panels allow you to set the document root for a particular site. some googling will help.

Re: Installing cms made simple in own folder

Posted: Fri Mar 08, 2013 7:41 pm
by Wishbone
He doesn't even want that, I believe.

He wants document root to be /

but through some magic (htaccess maybe), all calls to / will call up /cmsms

In this way, he can 'bottle' up cmsms, and still access all his files through the normal path.

Re: Installing cms made simple in own folder

Posted: Sat Mar 09, 2013 1:58 pm
by gianpiero
.htaccess

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite\.com$
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
RewriteRule ^$ dir_of_installation_cmsms [L]
this htaccess allow the access at root level when a file exist in it, other way the visitors will go to index of cmsms but the url finally will be on address bar as

yoursite.com/cms/....

Re: Installing cms made simple in own folder

Posted: Thu Mar 14, 2013 3:06 pm
by Janie0183
Thank you for your help!

Re: Installing cms made simple in own folder

Posted: Fri Mar 22, 2013 2:46 am
by SpringSummer
Move CMSMS to a sub-folder.

Change domain name DNS to point to the folder.

Done.

Re: Installing cms made simple in own folder

Posted: Fri Mar 22, 2013 8:40 am
by velden
SpringSummer wrote:Move CMSMS to a sub-folder.

Change domain name DNS to point to the folder.

Done.
DNS does not point to a folder. DNS points to an IP address.

Re: Installing cms made simple in own folder

Posted: Fri Mar 22, 2013 10:49 pm
by SpringSummer
velden wrote:
SpringSummer wrote:Move CMSMS to a sub-folder.

Change domain name DNS to point to the folder.

Done.
DNS does not point to a folder. DNS points to an IP address.
When changing where a domain name points to, you can easily specify any sub-folder on your server (old "root URL" + new subfolder).

One more change in config.php paths, and your users will not know anything changed.

Re: Installing cms made simple in own folder

Posted: Sat Mar 23, 2013 8:13 am
by velden
I still don't fully agree.

Probably you're talking about a redirection, maybe even combined with cloaking. Both I think are not a very good idea with regards to a. the question and b. SEO.

Cloaking will 'hide' the subfolder but I believe search engines will notice the change and might not connect to content to the old domain name.

If you redirect with the preferred http 301 then the subfolder will become visible/part of the url.

So when possible, .htaccess rewrite will be the best, invisible option in my opinion.