use index_test.php instead of index.php

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
SimonSchaufi

use index_test.php instead of index.php

Post by SimonSchaufi »

Hi!

I have currently 2 different CMS running in the root (a subfolder is too complicated because i need to move all the files later). Is it possible that i test CMSMS in the root with a different index file? When i rename the index.php to anything else, all the menu items are still linked to index.php but i want them to be linked to the new index file i want. is that possible?

This might be helpful for everybody who is using Joomla for example and want to use CMSMS in the future
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: use index_test.php instead of index.php

Post by RonnyK »

Simon,
when I develop a new site, I'll do that in a subdomain, so no sub-folder.

instead of www.domain.com I'll then have temp.domain.com as well. When the environment has to go live, I only change the name of the folder using FTP, and change the config.php to reflect the changes as well.

When you use FileBackup in combination Backup, you can make a backup of all files and the SQL, making it easier to move an environment.

Ronny
SimonSchaufi

Re: use index_test.php instead of index.php

Post by SimonSchaufi »

I dont know about your provider but bluehost makes subdomains in subfolders so when typing
sub.domain.org
it is the same if you type www.domain.org/sub
Pierre M.

Re: use index_test.php instead of index.php

Post by Pierre M. »

Hello,

I wouldn't bother with subdomains because I don't see a need for such a configuration.
And subfolders are good at isolating software. If you have an URL rewriting webserver (like Apache or lightty) you can have live sites in a subfolder but looking from the web as being in the root. So no need either to "move to root" for going live (this is what RewriteBase is for).

I you really want to "move after build from a subfolder to the root folder", there is a nice post from Mark : search "moving to root".

Pierre M.
SimonSchaufi

Re: use index_test.php instead of index.php

Post by SimonSchaufi »

ok, i understand and the server i have is supporting mod_rewrite but how can i still acccess 2 different cms at the same time?
Pierre M.

Re: use index_test.php instead of index.php

Post by Pierre M. »

By separating the request flow by URLs with mod_rewrite :
w.site.org/ugly_cms.php?uglyXYZ=ugly123 are internaly forwarded to /subfolder1/ugly_cms.php?uglyXYZ=ugly123
w.site.org/some/path/to/page.html is internaly forwarded to /cmsms/index.php?page=alias

Pierre M.
Locked

Return to “CMSMS Core”