# Twitch embed is only working on the www version of my site

**URL:** <https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111>\
**Category:** API\
**Created:** [October 16, 2021, 10:12pm UTC](https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111 "2021-10-16T22:12:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuart.john.forbes99](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/stuart.john.forbes99/32/14059_2.png) [@stuart.john.forbes99](https://discuss.dev.twitch.com/u/stuart.john.forbes99)\
**Post date:** [October 16, 2021, 10:12pm UTC](https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111/1 "2021-10-16T22:12:13Z")

</div>

I have added an embed for my twitch channel to my website `https://www.stus-crew.co.za/page1.html` and it works fin there but if I go to `https://stus-crew.co.za/page1.html` the embed no longer works and i get the firefox can’t open this page message, my embed code is as follows:

```auto
<iframe
    src="https://player.twitch.tv/?channel=stuforbes&parent=stus-crew.co.za&parent=www.stus-crew.co.za&muted=true"
    height="300"
    width="400"
    allowfullscreen="true">
</iframe >

```

what am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [October 17, 2021, 8:20am UTC](https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111/2 "2021-10-17T08:20:12Z")

</div>

The embed src you’re using on both pages is `https://player.twitch.tv/?channel=stuforbes&parent=www.stus-crew.co.za&muted=true` which only has 1 parent, the one with `www.`

The embed code you posted here, isn’t the same as what your site is using.

---

<div class="post-metadata">

**Author:** ![stuart.john.forbes99](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/stuart.john.forbes99/32/14059_2.png) [@stuart.john.forbes99](https://discuss.dev.twitch.com/u/stuart.john.forbes99)\
**Post date:** [October 17, 2021, 4:03pm UTC](https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111/3 "2021-10-17T16:03:40Z")

</div>

okay but both URLs point to the same web server so effectively they both point to the same website. And it is working on my end on the www site so how do I fix it ?

---

<div class="post-metadata">

**Author:** ![stuart.john.forbes99](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/stuart.john.forbes99/32/14059_2.png) [@stuart.john.forbes99](https://discuss.dev.twitch.com/u/stuart.john.forbes99)\
**Post date:** [October 17, 2021, 4:04pm UTC](https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111/4 "2021-10-17T16:04:25Z")

</div>

never mid i figured it out and fixed it

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [November 16, 2021, 4:05pm UTC](https://discuss.dev.twitch.com/t/twitch-embed-is-only-working-on-the-www-version-of-my-site/34111/5 "2021-11-16T16:05:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
