Page 1 of 1

Static site conversion.......

Posted: Fri Feb 15, 2008 1:25 am
by pminmo
I've been over the documentation and think I understand some methodology to convert an existing site, but want to solicite advice anyway, and am still confused about installing in a subdirectory, and htaccess file.  I've been through the apache documentation, but just don't undersand the "language". ???..  I've installed cmsmade simple several times and feel pretty good about usage.  My initial conversion would be the index page utilizing one the existing cms templates and direct menu links to the existing static content pages.  Questions:

I have several domains on the same server via subdirectories, those domains use index.php  The one I want to convert is the root domain. A simple htaccess like:  Redirect 301 /index.php http://www.mydomain.com/index.html   will point those subdomains back to the root.  How can I just redirect the root index.php  ?

or 

Installation of the new CMSms for the root domain that I want to convert, if I install in a subfolder (my preferred choice) as I build the conversion, I assume I can do all the work via the subfolder path and leave the index.php there?  The when I'm ready to activate it, can I move the index.php to the root directory or do I modify the htaccess file?  if so how?

Thanks in advance
Phil

Re: Static site conversion.......

Posted: Fri Feb 15, 2008 3:39 pm
by Pierre M.
Hello,

have you found and read this ?

Pierre M.

Re: Static site conversion.......

Posted: Fri Feb 15, 2008 7:49 pm
by pminmo
Yes, several times.

Re: Static site conversion.......

Posted: Tue Feb 19, 2008 1:12 pm
by Pierre M.
Redirect http server directives can be bound to one domain/vhost/directory... This is not CMSms specific. If you want /index.php be redirected for one of your domains only, don't do it on the others.
I'm feeling I haven't understood your question.

Pierre M.

Re: Static site conversion.......

Posted: Tue Feb 19, 2008 5:14 pm
by pminmo
I probably didn't ask the question very well.  But you kind of answered it, as well as I realized I had already effectively done a portion of what I was concerned about, installing cms in a sub folder.  I think the only remailing question is the specific htaccess redirect.  I know this isn't an apache forum, and I'm not sure where to ask the question.  If I want to only redirect one index.html in the root to the cms inex.php in a sub folder what would that redirect look like?

i.e. www.mysite.com/index.html being redirected to www.mysite.com/cms/index.php

Thanks,
Phil

Re: Static site conversion.......

Posted: Wed Feb 20, 2008 5:55 pm
by Pierre M.
An ugly hack (at the HTML level) is to put a META refresh in the HTML header of your index.html. Another even uglier is to use javascript (document.location=...) in the body of the HTML, "onload".

About redirects and several CMSms installations on several domains and/or subfloders : isolate each case at the webserver level (vhost for domains, Directory or LocationMatch for subfolders) and see the Apache doc about the Redirect directive. It could be as simple as
Redirect /index.html http://some.host.net/some/folder/index.php
in the appropriate place (webserver context)

As this is not CMSms specific, you can try it with static redirect to a simple static file echo.php.

Pierre M.