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?
Moving the homepage
Re: Moving the homepage
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?
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?
-
Pierre M.
Re: Moving the homepage
Hello,
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.
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.
Humm.. couldn't we have the install in some deep folder but still pretty URLs ?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.
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'm not sure what you are thinking about :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?
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
I didn't quite understand this, sorry.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.
OK, this I understand. Thanks a lot.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.
-
Pierre M.
Re: Moving the homepage
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 ?barboni wrote:I didn't quite understand this, sorry.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.
Pierre M.
PS : feel free to translate the wiki.
Re: Moving the homepage
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.

