# 从目录移动到子域名

**URL:** <https://meta.discourse.org/t/moving-from-directory-to-subdomain/81475>\
**Category:** Self-hosting\
**Tags:** subfolder\
**Created:** [2018 年2 月 25 日 16:13 UTC](https://meta.discourse.org/t/moving-from-directory-to-subdomain/81475 "2018-02-25T16:13:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![Ironclad14](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ironclad14/32/120185_2.png) [@Ironclad14](https://meta.discourse.org/u/Ironclad14)\
发布日期： [2018 年2 月 26 日 09:04 UTC](https://meta.discourse.org/t/moving-from-directory-to-subdomain/81475/4 "2018-02-26T09:04:44Z")

</div>

I’m getting this error when I try:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/a/0a594dea7aa1a8cefb1dd6faa2d789a254f3a16f.png)

Chrome says it’s an invalid redirect.

Is there a way to do it through command line?

---

_[View the full topic](https://meta.discourse.org/t/moving-from-directory-to-subdomain/81475)._
