CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 default, home or index.html loading before php file

Print topic Send  topic

Author Message
Frank S.
Posted: 08/07/2002, 8:26 AM

Hi all,
Does anyone know the file to edit in apache to have my php files load
before .html files? index.html is loading before index.php when I use
PHP and Templates. Another post referred to a htaccess file. In search
my server I found over 100 of these.
Cobalt Raq4, PHP, MySQL w/CC 2.05
Thanks,
Frank
guest
Posted: 08/07/2002, 9:11 PM

create a .htaccess (note the file begins with a period) file with this line
in it
DirectoryIndex index.php

Apache will look for index.php first. If not found it will continue with the
normal search. Put the .htaccess file in the directory with your scripts.

"Frank S." <info@auuooh.com> wrote in message
news:aire6n$go6$1@news.codecharge.com...

> Hi all,
> Does anyone know the file to edit in apache to have my php files load
> before .html files? index.html is loading before index.php when I use
> PHP and Templates. Another post referred to a htaccess file. In search
> my server I found over 100 of these.
> Cobalt Raq4, PHP, MySQL w/CC 2.05
> Thanks,
> Frank
>

Frank S.
Posted: 08/08/2002, 9:58 AM

Thanks, So are you saying I need to create an .htaccess file for each
site, each directory?
Frank
Frank S.
Posted: 08/08/2002, 10:16 AM

edit your srm.conf file so that index.php comes before index.html
Frank
guest
Posted: 08/09/2002, 4:50 PM


Hello Frank,

On your webserver there's a file named httpd.conf. Open it, (with pico) and
you can find somewhere in this file something like this:

<IfModule mod_dir.c>
DirectoryIndex index.php index.php3 index.htm index.html index.shtml
</IfModule>

The first file (and extention) will be the one that be load first, after
that the index.php3 than index.html and so on...

Make sure you reload apache with the command "apachectl restart"

Frans


"Frank S." <info@auuooh.com> schreef in bericht
news:aire6n$go6$1@news.codecharge.com...
> Hi all,
> Does anyone know the file to edit in apache to have my php files load
> before .html files? index.html is loading before index.php when I use
> PHP and Templates. Another post referred to a htaccess file. In search
> my server I found over 100 of these.
> Cobalt Raq4, PHP, MySQL w/CC 2.05
> Thanks,
> Frank
>

Frank Spade
Posted: 08/09/2002, 11:14 PM

In conf/httpd.conf look for DirectoryIndex

"Frank S." <info@auuooh.com> wrote in message
news:aire6n$go6$1@news.codecharge.com...
> Hi all,
> Does anyone know the file to edit in apache to have my php files load
> before .html files? index.html is loading before index.php when I use
> PHP and Templates. Another post referred to a htaccess file. In search
> my server I found over 100 of these.
> Cobalt Raq4, PHP, MySQL w/CC 2.05
> Thanks,
> Frank
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.