Page 1 of 1

its possible change index.php to home.php?

Posted: Thu Mar 16, 2006 2:02 pm
by JetLi
Hi All
I want to know, if this possible index.php change to home.php on CMS made simple?

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

Posted: Thu Mar 16, 2006 3:21 pm
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?

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

Posted: Thu Mar 16, 2006 3:37 pm
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  ;)

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

Posted: Thu Mar 16, 2006 4:18 pm
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?

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

Posted: Sat Mar 25, 2006 2:49 pm
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.

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

Posted: Sun Mar 26, 2006 5:59 pm
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...