# تثبيت discourse على خادم يعمل بالفعل بخادم ويب، مع إعادة توجيه النطاق إلى نطاق فرعي

**URL:** <https://meta.discourse.org/t/installed-discourse-on-a-server-that-already-runs-a-webserver-domain-just-redirects-to-subdomain/107645>\
**Category:** Self-hosting\
**Created:** [27 يناير 2019، 1:48م UTC](https://meta.discourse.org/t/installed-discourse-on-a-server-that-already-runs-a-webserver-domain-just-redirects-to-subdomain/107645 "2019-01-27T13:48:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [27 يناير 2019، 3:21م UTC](https://meta.discourse.org/t/installed-discourse-on-a-server-that-already-runs-a-webserver-domain-just-redirects-to-subdomain/107645/2 "2019-01-27T15:21:27Z")

</div>

What I can guess is that there is something wrong with your wordpress configuration (It looks very customized with those error pages etc.)

while trying to access your wordpress, I get

> The page isn’t redirecting properly
> 
> Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
> 
> ```
> This problem can sometimes be caused by disabling or refusing to accept cookies
> 
> ```

Page location is [http://snapecraft.net/en/home-2/](http://snapecraft.net/en/home-2/)

This is what I get when I try to curl that link:

> curl -I [http://snapecraft.net/en/home-2/](http://snapecraft.net/en/home-2/)  
> HTTP/1.1 301 Moved Permanently  
> Server: nginx/1.15.8  
> Date: Sun, 27 Jan 2019 15:22:11 GMT  
> Content-Type: text/html; charset=UTF-8  
> Connection: keep-alive  
> Set-Cookie: pll\_language=en; expires=Mon, 27-Jan-2020 15:22:11 GMT; Max-Age=31536000; path=/  
> Location: [http://snapecraft.net/home-2/](http://snapecraft.net/home-2/)

forum loads fine.

Any chance your primary site is running without ssl as well?

---

_[View the full topic](https://meta.discourse.org/t/installed-discourse-on-a-server-that-already-runs-a-webserver-domain-just-redirects-to-subdomain/107645)._
