Page 1 of 1

Moving the homepage

Posted: Mon Apr 09, 2007 8:39 pm
by barboni
Hi,
my CMS is set into a folder (/root/cms) and I would like to move only the homepage to the root, but to leave the site intact. Is that possible?

Re: Moving the homepage

Posted: Tue Apr 10, 2007 12:16 am
by hexdj
Read this thread, someone just asked the same.

Hope it helps.

Re: Moving the homepage

Posted: Tue Apr 10, 2007 8:47 am
by barboni
Thnx, I am redirecting now, but that's not exactly what I ment. I find it more convenient to keep the whole site in a folder and to separate the homepage outside of it.

BTW, it opens another issue, how do we manage subdomains in CMSMS? Do we have to install it from the scratch, or can we use one installation for all?

Re: Moving the homepage

Posted: Tue Apr 10, 2007 1:46 pm
by Pierre M.
Hello,
barboni wrote: Thnx, I am redirecting now, but that's not exactly what I ment. I find it more convenient to keep the whole site in a folder and to separate the homepage outside of it.
Humm.. couldn't we have the install in some deep folder but still pretty URLs ?
I'd try to replace the last line of the provided .htaccess sample :
RewriteRule ^(.+)$ relative/path/to/the/deep/folder/of/cmsms/index.php?page=$1 [QSA]
Just keep the .htaccess in the root.
BTW, it opens another issue, how do we manage subdomains in CMSMS? Do we have to install it from the scratch, or can we use one installation for all?
I'm not sure what you are thinking about :
A)You would like your content to be accessed only via a canonical hostname. See :
http://httpd.apache.org/docs/2.2/rewrit ... onicalhost
(and may be http://httpd.apache.org/docs/2.2/rewrit ... nonicalurl )
B)CMSms can't do shared virtual hosting as the underlying Apache can. my.host.my.domain.net and my.otherhost.my.domain.net are 2 separate hosts and require 2 separate CMSms installations.
Hope it helps, tell me if unclear.

Pierre M.

Re: Moving the homepage

Posted: Tue Apr 10, 2007 2:02 pm
by barboni
Pierre M. wrote: Humm.. couldn't we have the install in some deep folder but still pretty URLs ?
I'd try to replace the last line of the provided .htaccess sample :
RewriteRule ^(.+)$ relative/path/to/the/deep/folder/of/cmsms/index.php?page=$1 [QSA]
Just keep the .htaccess in the root.
I didn't quite understand this, sorry.
I'm not sure what you are thinking about :
A)You would like your content to be accessed only via a canonical hostname. See :
http://httpd.apache.org/docs/2.2/rewrit ... onicalhost
(and may be http://httpd.apache.org/docs/2.2/rewrit ... nonicalurl )
B)CMSms can't do shared virtual hosting as the underlying Apache can. my.host.my.domain.net and my.otherhost.my.domain.net are 2 separate hosts and require 2 separate CMSms installations.
Hope it helps, tell me if unclear.

Pierre M.
OK, this I understand. Thanks a lot.

Re: Moving the homepage

Posted: Tue Apr 10, 2007 2:12 pm
by Pierre M.
barboni wrote:
Pierre M. wrote: Humm.. couldn't we have the install in some deep folder but still pretty URLs ?
I'd try to replace the last line of the provided .htaccess sample :
RewriteRule ^(.+)$ relative/path/to/the/deep/folder/of/cmsms/index.php?page=$1 [QSA]
Just keep the .htaccess in the root.
I didn't quite understand this, sorry.
Please read "Pretty URLs and mod_rewrite" in http://wiki.cmsmadesimple.org/index.php ... l_Settings it explains how to separate your installation folder and the URLs (links) to the content. I guess your are not doing URL rewriting yet, do you ?
Pierre M.
PS : feel free to translate the wiki.

Re: Moving the homepage

Posted: Wed Apr 11, 2007 7:32 am
by barboni
Aha, now I got it! So, if I got it right I would additionaly have to replace that line in .htaccess? I just have to check with hosting provider if ai'm allowed to work with it. Thanks a lot, this was  a great help.

Re: Moving the homepage

Posted: Wed Apr 11, 2007 1:25 pm
by Pierre M.
Yes, you got it right. Have fun.
Pierre M.