There are many ways to set the default homepage of a website. For example, apache can be directly configured in httpd. conf and htaccess set site blacklist homepage, and iis can be set in iis Management documentation management.
On the linux Apache server, how does one set the default homepage of a website?
In the installation directory/conf/httpd. conf file, you can set the homepage file name search sequence. The following is a configuration example:
The Code is as follows: |
Copy code |
<IfModule dir_module> DirectoryIndex index. php index.html index.htm default. php </IfModule> |
. Htaccess file setting website renewal page
The Code is as follows: |
Copy code |
<Files ~ "^. (Htaccess | htpasswd) $"> Deny from all </Files> DirectoryIndex index.html index. php Order denyallow |
The code above indicates the order in which files under the root directory are opened by the website by default. "Index.html" is the first line. If this file is not available, open "index. php ".
On the iis server, how does one set the default homepage of a website?
Open iis, right-click site management, and choose Properties> document.