xoops forums

goffy

Just can't stay away
Posted on: 4/3 10:47
goffy
goffy (Show more)
Just can't stay away
Posts: 487
Since: 2010/12/27
#1

index.html vs. index.php

Hi

I see that in some modules the developers use index.php instead of index.html

is there a special reason for this?

Mamba

Moderator
Posted on: 4/3 14:32
Mamba
Mamba (Show more)
Moderator
Posts: 11166
Since: 2004/4/23
#2

Re: index.html vs. index.php

See: https://github.com/XOOPS/XoopsCore25/pull/889

Quote:
Replace index.html files with javascript with index.php files that will cause a 404 error if accessed.


So all the index.html containing:
<script>history.go(-1);</script>


Should be replaced with index.php:
<?php
header
('HTTP/1.0 404 Not Found');


You can use the "IndexScan" module to find out which folders are missing the index.php file.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

culex

Module Developer
Posted on: 4/11 17:06
culex
culex (Show more)
Module Developer
Posts: 711
Since: 2004/9/23
#3

Re: index.html vs. index.php

I always use index.php is used in modules where there are not index.php page prior.. I think both types is working in image/css/js folders.

Quote:

goffy wrote:
Hi

I see that in some modules the developers use index.php instead of index.html

is there a special reason for this?