Author Topic: index.html lost  (Read 1013 times)

Offline Nibble

  • Semi-Newbie
  • *
  • Posts: 14
index.html lost
« on: November 03, 2015, 02:16:23 PM »
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?

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,119
Re: index.html lost
« Reply #1 on: November 03, 2015, 02:28:14 PM »
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.

Offline Gluz

  • Sr. Member
  • ****
  • Posts: 985
  • Gender: Male
Re: index.html lost
« Reply #2 on: November 03, 2015, 06:31:02 PM »
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:
Code: [Select]
RewriteEngine On
RewriteRule ^$ /your_subdirectory_name [L]
Need help with PHP, HTML, CSS, Themes or MODs?

Think in spanish, habla en ingl├ęs.