index.html lost

Started by Nibble, November 03, 2015, 02:16:23 PM

Previous topic - Next topic

Nibble

My forum is in a sub directory smf.
I have a full backup of that directory but I lost "index.html" which was outside the directory and pointed to the forum.
My guess is that it's a rather standard file.
The forum was installed using cpanel of my host.

Is there a way to fix this?

Illori

are you using SMF 2.1?

SMF does not come with a index.html file, this file had to be created by you or someone else. you could always ask your host to restore that file.

Gluz

Your index.html pointed directly to your forum in the subdirectory?
Do you have any other software or content in the root directory of your web?

If you don't have any other content or software in the root directory and the index.html was pointing directly to the forum, then you don't need to have it in a subdirectory, but if you want it that way, you can either redirect the content with an .htaccess file in the root, this is a little faster than redirect in index.php or index.html files.

To make a redirection, you need to create (or add to) .htaccess file with this:
RewriteEngine On
RewriteRule ^$ /your_subdirectory_name [L]

Advertisement: