1
goffy
index.html vs. index.php
  • 2021/4/3 10:47

  • goffy

  • Just can't stay away

  • Posts: 504

  • Since: 2010/12/27


Hi

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

is there a special reason for this?

2
Mamba
Re: index.html vs. index.php
  • 2021/4/3 14:32

  • Mamba

  • Moderator

  • Posts: 11258

  • Since: 2004/4/23


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

3
culex
Re: index.html vs. index.php
  • 2021/4/11 17:06

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


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?

Login

Who's Online

45 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 45


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits