<p>I'm building a multisite on Craft CMS 4 and I'm having trouble with channel URLs. At the moment I'm working locally and then pushing it to the hosting via github.</p>
<p>I've created a folder for each site within the templates folder. The urls for the singles work fine i.e. https://mybasesiteurl/secondsiteurl/about. However, when I create a channel it forces me to include the site template folder in the url so it becomes https://mybasesiteurl/secondsiteurl/secondsite/blog. I have a number of channels all with the same problem.</p>
<p>The channels each have their own folders within the site templates folder but I have tried taking them out so they sit in the second site templates folder with the singles - same problem.</p>
<p>I'm also having trouble with the templates not finding the CSS which is in a CSS folder in the web-second-site folder. Here's how I've linked it:</p>
<pre><code>&lt;link href=&quot;css/normalize.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
</code></pre>
<p>This is my first Craft site so it's possible I've gone wrong somewhere with the multisite setup. I've configured everything as per the instructions in the admin panel and I've created a web folder for the second site and added the following to its index.php file:</p>
<pre><code>define('CRAFT_SITE', 'theJanuaryProject');
</code></pre>
<p>Have I gone wrong somewhere?</p>

CC BY-SA 4.0
2022-12-26T04:11:21.797Z
Hey for the channel section what is your Entry URI Format?
aodihis
CC BY-SA 4.0
2022-12-26T12:01:04.470Z
A relative URL for CSS will never work with URL rewrites, even on a single site setup, because your URIs might be `/level-1-slug/level-2-slug` so `css/normlize.css` would be `/level-1-slug/css/normlize.css`, which doesn't exist
Capsule
<templating><localization><url><multi-site><craft4>
Trouble with channel URLs and CSS files not pulling through - Craft CMS 4 Multisite
# Trouble with channel URLs and CSS files not pulling through - Craft CMS 4 Multisite

(Asked by: username_0 on 2022-12-25)

I'm building a multisite on Craft CMS 4 and I'm having trouble with channel URLs. At the moment I'm working locally and then pushing it to the hosting via github.
I've created a folder for each site within the templates folder. The urls for the singles work fine i.e. https://mybasesiteurl/secondsiteurl/about. However, when I create a channel it forces me to include the site template folder in the url so it becomes https://mybasesiteurl/secondsiteurl/secondsite/blog. I have a number of channels all with the same problem.
The channels each have their own folders within the site templates folder but I have tried taking them out so they sit in the second site templates folder with the singles - same problem.
I'm also having trouble with the templates not finding the CSS which is in a CSS folder in the web-second-site folder. Here's how I've linked it:


This is my first Craft site so it's possible I've gone wrong somewhere with the multisite setup. I've configured everything as per the instructions in the admin panel and I've created a web folder for the second site and added the following to its index.php file:
define('CRAFT_SITE', 'theJanuaryProject');

Have I gone wrong somewhere?

**Tags:** templating, localization, url, multi-site, craft4
> **Comments:**
> **username_1**: Hey for the channel section what is your Entry URI Format?  
> **username_2**: A relative URL for CSS will never work with URL rewrites, even on a single site setup, because your URIs might be `/level-1-slug/level-2-slug` so `css/normlize.css` would be `/level-1-slug/css/normlize.css`, which doesn't exist  

---

## 0 answers

