使用 htaccess 更改默认网页
这是我的网站的文件结构
- app/view/home.php
- .index.php
- .htaccess
现在,如果访问 index.php,我想将服务器重定向到 app/view/home.php 。
通过访问 http://localhost/,app/view/home.php 必须是要提供服务的页面。
谢谢!
This is the file structure of my website
- app/view/home.php
- .index.php
- .htaccess
Now, I want to redirect the server to app/view/home.php if index.php is accessed.
By going to http://localhost/, the app/view/home.php must be the page to be served.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许这个在 htaccess 中?
maybe this in htaccess?
我认为这可以通过别名指令来实现
I think this can be achieved by alias directive