客户需求网站先是一个图片引导页面,点击进入首页在是页面index.php。由于之前没有考虑到页面先访问的是欢迎页面,这个时候调整网站目录结构又比较麻烦,我们可以通过伪静态优先访问默认页面default.html 然后是index.html
下面是伪静态规则
RewriteEngine On RewriteBase / DirectoryIndex filename.ext default.html index.html index.htm index.php index.cgi index.pl index.shtml
这个是适用.htaccess文件的伪静态,其他伪静态web.config思路也一样