Page 1 of 1

Help on changing the index.php page?

Posted: Wed Sep 20, 2006 9:45 pm
by Jack @ PharSide
Can anyone help me with this one? This is probably a simple thing although I couldn't find it. I am trying to figure out how to make the URLs in the site point to index2.php or something else for development rather than the default index.php. Where can this be edited and is it in several places or one editable variable?

Thanks for any help,
-J

Re: Help on changing the index.php page?

Posted: Thu Sep 21, 2006 2:26 am
by Dee
You can change the page extension and query variable in config.php by changing $config['page_extension'] and $config['query_var'] respectively.
I'd setup CMSMS in a subdir (or on another server) for development.

Regards,
D

Re: Help on changing the index.php page?

Posted: Thu Sep 21, 2006 8:06 am
by Dr.CSS
If you are just trying to hide the site while developing it you can make a simple index.html page and it will show up instead of index.php, all browsers look for .html pages first.

Re: Help on changing the index.php page?

Posted: Thu Sep 21, 2006 8:20 am
by tsw
Actually browsers dont look for the index file, apache (and other http servers) have configuration setting for which file to use as index file if none is specified by the client (browser) in apache its just a list like index.html index.php index.php3 index.... so on, first one found will be used

Re: Help on changing the index.php page?

Posted: Thu Sep 21, 2006 9:21 pm
by Dr.CSS
OH, well I didn't know it that way but it sounds like it works along the same lines as what I thought.
Does it still mean that it will serve an .html file first?

I've used the .html (trick) way to set up numerous sites and it always worked, is there some configurations where it won't work?

Re: Help on changing the index.php page?

Posted: Fri Sep 22, 2006 8:45 am
by tsw
it just depends on how the server is set up.

usually html is first but there might be exceptions...

Re: Help on changing the index.php page?

Posted: Fri Sep 22, 2006 9:09 am
by Dee
On apache the DirectoryIndex directive sets this:
http://httpd.apache.org/docs/2.2/mod/mo ... ctoryindex

Code: Select all

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.php index.html index.htm index.html.var
(in my setup index.php is served before index.html)

Re: Help on changing the index.php page?

Posted: Fri Sep 22, 2006 3:41 pm
by Dr.CSS
I learn some thing new every day...
.
.
.
.
.
.
.
.
.
.
.
or stagnate.....  ;)