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

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
kendo451

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

Post 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
Pierre M.

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

Post 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.
Pierre M.

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

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
Pierre M.

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

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”