在我的网站根目录下。有donghua.php和index.php。现在有没有办法使用.htaccess
文件让访问者访问我的网站,默认显示为example.com/donghua.php
。不是example.com/index.php
。谢谢。该服务器是Apache。有没有办法让.htaccess文件得到这个?
PS:example.com/index.php
我在.htaccess使用DirectoryIndex donghua.php
用户仍然可以访问。默认页面没问题。但当我访问example.com/index.php
它重定向到example.com/donghua.php
。如果我禁止它重定向我该怎么办?
我厌倦了你的密码,默认的页面就可以了。但我仍然想访问http://www.example.com/index.php – linuxlearner
当我访问example.com/index.php时,它总是重定向到example.com/donghua.php – linuxlearner