The link to index.html does not work

But the page exists both index.html and index.php
But at the site address it does not start:
https://tomb.infinityfreeapp.com/index.php
https://tomb.infinityfreeapp.com/index.html
I tried to open the file: .htaccess but it is empty and would not disappear even if I inserted inside.

I see E404

Please read

5 Likes

Hi there. It’s like that those files don’t exist. I tried open a page that actually doesn’t exist within my website and I’ve been addressed to the same page.

Regarding the file .htaccess, as far as I know that one in the root folder shouldn’t be edited by you directly, but it gets updated if you change some settings.

It’s strange that is empty. Is it possible that you cleaned it up?

A basic example of .htaccess file could be:

##################################################

DO NOT EDIT THIS FILE

Create a new .htaccess file in your htdocs

directory (or example.com/htdocs/ directory)

to add your own rules or override these rules.

##################################################

DirectoryIndex index.php index.html index.htm index2.html

ErrorDocument 403 https://errors.infinityfree.net/errors/403/
ErrorDocument 404 https://errors.infinityfree.net/errors/404/
ErrorDocument 500 https://errors.infinityfree.net/errors/500/

If you want to change something in the .htaccess file, I can suggest you to create a new one in the /htdocs folder and put there your settings.

If you want that the file index.php gets open instead of the index.html, the instruction “DirectoryIndex …” should have first the index.php and after the index.html. If you rather prefer that is the file index.html to be open, you need to invert the order.

Where are your index.php and index.html files?

because they need to be in tomb.infinityfreeapp.com/htdocs not just htdocs

This often happens when you’ve added multiple domains, even after you’ve deleted one.

3 Likes

Thank you very much, but despite your detailed explanations, I could not understand what I actually had to do.
It is not your fault, but my ignorance on many functions of a server.
I solved the problem anyway, thanks to the fact that now there is a directory:
tomb.infinityfreeapp.com, with: htdocs, inside, I moved all the files to this and everything now works.
thanks to everyone.

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.