Page 1 of 1

How to setup CMS in a directory but run from domain root?

Posted: Thu Aug 23, 2007 4:53 pm
by kendo451
This CMSMS system blows away all the other CMS I've ever used!  It really is a credit to the leadership of this open source project.

Here is my question:

I would like to set up CMSMS in a subfolder, "cms".  However, I want the CMS to run from the domain name default: http://domainname.com

What is the best way to make this work?

If I use the method you recommend, will it work with the pretty URL's solution built into CMSMS?

Thanks,
Ken Griffith

Re: How to setup CMS in a directory but run from domain root?

Posted: Thu Aug 23, 2007 5:20 pm
by Pierre M.
Welcome,

mod_rewrite's RewriteBase is your friend. It is the easiest way to keep the install in a folder and broadcast it as if it were in root. See other posts with "rewritebase".
Have fun

Pierre M.

Re: How to setup CMS in a directory but run from domain root?

Posted: Thu Aug 23, 2007 5:25 pm
by Pierre M.
Sorry, I've posted too quickly. here is some more :

The internal pretty URLs hack can't do what you want. Instead of .com/path/to/page.html you will have .com/cmsfolder/index.php/path/to/page All you can do is to install CMSms files (not the folder) in root to squeeze /cmsfolder.

You have to use URL rewriting to get .com/path/to/page.html
Hope it answers better your question.

Pretty URLs doc is here : http://wiki.cmsmadesimple.org/index.php ... l_Settings

Pierre M.

Re: How to setup CMS in a directory but run from domain root?

Posted: Thu Aug 23, 2007 7:18 pm
by RonnyK
Ken,

a quick and easy method, is creating an index.php file in the domain-root, that forwards.

http://forum.cmsmadesimple.org/index.ph ... l#msg56119

Ronny

Re: How to setup CMS in a directory but run from domain root?

Posted: Thu Aug 23, 2007 8:45 pm
by Pierre M.
Ahhh... yes, may be I've overlooked what Ken was looking for.
If what matters is to provide access to the site running in a subfolder, even a static index.html as prehome in the root can provide a link to the subfolder.
This won't hide from the net the fact that the software is installed in a subfolder.

Pierre M.