Loading...

.htaccess設定網站預設首頁次序

Temperature: 0 °C

Mark ChangMark Chang
author_tools

一般php空間預設設定是index.php為首頁。
所以如果網站用index.php做首頁,就不需要設定.htaccess。
但如果不是用index.php做為首頁。
例如,home.php
就可以在.htaccess檔案中添加如下行:

DirectoryIndex home.php

以上紀錄。

#故事  #htaccess  #DirectoryIndex  #設定網站預設首頁  
https://innstory.com/story-htaccess設定網站預設首頁次序-2670
apache

Prev
 當XAMPP遇到VMWARE占用PORT_443導致無法啟動APACHE

Next
使用CSS_讓ul_li_橫向水平 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

使用手機將網址分享到 Line時,如何強制使用預設(外部)瀏覽器開啟?

使用手機將網址分享到 Lin...

如標題,當厭惡了每次在line上面分享demo網址給客戶時點選網址就會使用line的瀏覽器開啟。 還...

使用CSS 讓ul li 橫向水平

使用CSS 讓ul li 橫...

好吧,其實這個css常在用,但我每次都沒特別紀錄,然後每次又忘記然後又要Google。 其實主要就是...

PHP Caching Headers

PHP Caching He...

pexelsphotospeed 最近測試平台系統執行速度,老實說測試的有點無力~ 總覺得能做的可以...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format