标签: .htaccess subdomain blogs
我目前的博客位于blog.flohei.de。我想放弃blog并直接在flohei.de处运行所有内容。然后,blog.flohei.de/foo/bar.html的旧链接应自动重定向或映射到flohei.de/foo/bar.html。我认为这可以使用.htaccess文件,对吗?但是我该怎么做呢?我在哪里放这个文件?谢谢!
blog.flohei.de
blog
flohei.de
blog.flohei.de/foo/bar.html
flohei.de/foo/bar.html
.htaccess
答案 0 :(得分:1)
将此代码放入DOCUMENT_ROOT/.htaccess的{{1}}文件中
DOCUMENT_ROOT/.htaccess