iT邦幫忙

1

InfinityFree FileZilla 上傳Code

  • 分享至 

  • xImage

我是個新手!!
我用InfinityFree建立了網站,接著下載了FileZilla,
但我的FileZilla一直顯示錯誤,且我上傳我的程式碼後,網站卻長這樣?
請各位前輩幫幫我?https://ithelp.ithome.com.tw/upload/images/20210811/20140542Pdu16XJLfZ.pngYesYes
https://ithelp.ithome.com.tw/upload/images/20210811/20140542prAVRtaTqV.png

Homura iT邦高手 1 級 ‧ 2021-08-11 15:40:54 檢舉
server設定應該都是把index.html當作預設網頁
把你dark.html改成index.html試試
不好意思~問一下index.html在哪裡?沒看到 : P
沒事~成功了
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
海綿寶寶
iT邦大神 1 級 ‧ 2021-08-11 16:03:13

自己取
An index file is typically file with the name index.php, index.html, index.htm or index2.html.

Make sure your website has a valid index page

If you link directly to a file on your account (e.g. http://example.com/about.html), then the specific file will be loaded (about.html in that case). But what happens if you don’t link directly to a file, but to a directory instead (e.g. http://example.com/blog/ or just http://example.com/)?

In that case, the server will look for a valid “index file”. An index file is typically file with the name index.php, index.html, index.htm or index2.html. When trying to open a folder, the server will look for one of those files, and open the first one shown here.

If you have set up your website correctly, there should be a file like that directly in the htdocs folder. If not, it will load the index2.html file, which is the welcome page.

Please note that file names on InfinityFree (and almost all hosting providers) are cAsE sEnSiTiVe, so please make sure the file is not called Index.php or index.HTML, as these files will not be loaded.

You can also customize which file is loaded by default using .htaccess rules. By adding a rule like DirectoryIndex home.php index.php index.html, the server will try a home.php file before trying the index.php and index.html files. Learn more about how to add custom .htaccess rules.

詳細請看官網教學

我要發表回答

立即登入回答