php - Is there a way to get this by .htaccess file? -
in site root directory. there donghua.php , index.php. now, there way use .htaccess
file let visitor access site .the default shows example.com/donghua.php
. not example.com/index.php
. thank you. server apache.
ps:the user still can access example.com/index.php
i using directoryindex donghua.php
in .htaccess. default page ok. when access example.com/index.php
redirect example.com/donghua.php
. if forbid redirect how do?
if have access virtual host config file (or should able in htaccess) can set directoryindex donghua.php if want, i.e. instead of this:
directoryindex index.html index.php default.html
just do:
directoryindex donghua.php
so whenever goes website, example.com, apache installation read donghua.php default index file.
Comments
Post a Comment