首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用.htaccess文件将www.mysite.com/index.html重定向到www.mysite.com/

使用.htaccess文件将www.mysite.com/index.html重定向到www.mysite.com/
EN

Stack Overflow用户
提问于 2011-12-17 22:00:25
回答 1查看 10.4K关注 0票数 0

我希望重定向www.mysite.com/index.html

www.mysite.com/

但是我不希望用index.html重定向所有地址,比如

www.mysite.com/folder/index.html

www.mysite.com/folder/

因此,只需将第一个index.html页面重定向到站点的根目录。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8545243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档