its possible change index.php to home.php?

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
JetLi
Forum Members
Forum Members
Posts: 15
Joined: Thu Mar 16, 2006 2:00 pm

its possible change index.php to home.php?

Post by JetLi »

Hi All
I want to know, if this possible index.php change to home.php on CMS made simple?
jelle

Re: its possible change index.php to home.php?

Post by jelle »

yes and no. :)
Yes, if you use mod rewrite you could redirect calls to home.php to index.php. But them I think you'd better set assume_mod_rewrite in the config to true.
No, if you don't want to rely on mod_rewrite or other external solutions, you cannot do that. Here is a list of all files that reference index.php:
$ find . -type f -exec grep -l index.php {} /dev/null \;
./plugins/function.cms_selflink.php
./plugins/function.embed.php
./plugins/function.print.php
./admin/editconfig.php
./admin/themes/default/defaultTheme.php
./admin/menu.php
./admin/listcontent.php
./admin/index.php
./admin/siteprefs.php
./admin/moduleinterface.php
./admin/login.php
./admin/makebookmark.php
./admin/editprefs.php
./index.php
./moduleinterface.php
./doc/htaccess.txt
./lib/smarty/Smarty.class.php
./lib/classes/class.module.inc.php
./lib/classes/class.content.inc.php
./lib/classes/class.admintheme.inc.php
./lib/contenttypes/Content.inc.php
./lib/config.functions.php
./lib/content.functions.php
./lib/page.functions.php
./lib/config.functions.php~
./lib/content.functions.php~
./install/upgrade.php
./modules/News/News.module.php
./modules/FCKeditorX/FCKeditor/editor/plugins/CMSContent/fck_cmscontent.php
I guess you have to change at least all of those if you really need it.
Which leads me to the obvious question: Why would you want that?
JetLi
Forum Members
Forum Members
Posts: 15
Joined: Thu Mar 16, 2006 2:00 pm

Re: its possible change index.php to home.php?

Post by JetLi »

Hi
thnx. Because I have Index.php that use my subdomain script. And my hompepage need another startpage like home.php not index.php  ;)
Nogga

Re: its possible change index.php to home.php?

Post by Nogga »

If you have access to your apache-konfiguration, why not set .html also parsed by php and use index.html for your subdomain-script?
piratos

Re: its possible change index.php to home.php?

Post by piratos »

use a tool like search and replace (funduc.com) and replace all index.php to what_you_want.php in the cms related php - files automatically.
jelle

Re: its possible change index.php to home.php?

Post by jelle »

oh you mean like

Code: Select all

 find . -type f -exec sed 's/index.php/otherpage.php/g' -i {} \;
But then with pretty pictures? 
The chances that such a blind search & replace will work is pretty low, but you might never know indeed...
Locked

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