我們在沒有服務器資料,但是又ftp資料的情況下怎么設備網站默認首頁文件呢?
PHP語言開發的網站設置默認打開靜態頁面的方法。 通過.htaccess文件設置網站的默認頁
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
DirectoryIndex index.html index.php
order deny,allow
設置網站默認主頁當然是更加有利于網站優化了。
我們在沒有服務器資料,但是又ftp資料的情況下怎么設備網站默認首頁文件呢?
PHP語言開發的網站設置默認打開靜態頁面的方法。 通過.htaccess文件設置網站的默認頁
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
DirectoryIndex index.html index.php
order deny,allow
設置網站默認主頁當然是更加有利于網站優化了。