<p>Daryl,</p>

<p>I've setup a few sites with Craft and Vanilla Forums, I've always named the folder "Vanilla" to either "Community" or "Forum" so the url being "vanilla" isn't a problem. Also you should know you can do a javascript include into another craft template so the URL can be anything you want really. I've never had a .htaccess conflict though.</p>

<p>I've always run the forums under /forums or /community or something of the sort when not using the javascript iframe embed method at which point the url can be anything. I've never attempted using a sub-domain, just did not see the point.</p>

CC BY-SA 3.0
2016-09-20T14:16:44.543Z
Thanks Chris! Followup for anyone else who finds this question - the vanilla folder is going to live in `/public`
darylknight
CC BY-SA 3.0
2016-09-20T13:48:55.897Z
2016-09-20T13:55:28.363Z
2016-09-20T13:55:28.363Z
Christopher Healey
<p>I'm looking in to setting up a new site which has a Craft site in front of the open source version of Vanilla Forums. I'm a bit stuck on exactly where I should put vanilla though, and how to access it on the front end.</p>

<p>At the moment I've got this setup:</p>

<pre><code>/
    /craft
    /public
        /vanilla
</code></pre>

<p>But then vanilla's URLs look like <code>http://domain.dev/vanilla/index.php?p=</code> and it seems to conflic with Craft's .htaccess.</p>

<p>I've also seen on <a href="https://craftcms.stackexchange.com/questions/4323/localized-craft-build-with-vanilla-forums">another question</a> that someone installed vanilla in the templates directory. Is that better or a bad idea?</p>

<p>Lastly, should I be trying to run the forums under something like <code>domain.dev/forums/</code>, or would it be easier to run it on a subdomain like <code>forums.domain.dev</code>? I'm going to be using the <a href="https://github.com/nystudio107/vanillaforums" rel="nofollow noreferrer">Single Sign On plugin</a> to integrate it with Craft.</p>

<setup>
What's the correct directory setup for Craft with Vanilla Forums?
# What's the correct directory setup for Craft with Vanilla Forums?

(Asked by: username_0 on 2016-09-20)

I'm looking in to setting up a new site which has a Craft site in front of the open source version of Vanilla Forums. I'm a bit stuck on exactly where I should put vanilla though, and how to access it on the front end.
At the moment I've got this setup:
/
    /craft
    /public
        /vanilla

But then vanilla's URLs look like http://domain.dev/vanilla/index.php?p= and it seems to conflic with Craft's .htaccess.
I've also seen on another question that someone installed vanilla in the templates directory. Is that better or a bad idea?
Lastly, should I be trying to run the forums under something like domain.dev/forums/, or would it be easier to run it on a subdomain like forums.domain.dev? I'm going to be using the Single Sign On plugin to integrate it with Craft.

**Tags:** setup


---

## 1 answers

### Answer by username_1 on 2016-09-20. Score: 4 | Accepted answer

Daryl,

I've setup a few sites with Craft and Vanilla Forums, I've always named the folder "Vanilla" to either "Community" or "Forum" so the url being "vanilla" isn't a problem. Also you should know you can do a javascript include into another craft template so the URL can be anything you want really. I've never had a .htaccess conflict though.

I've always run the forums under /forums or /community or something of the sort when not using the javascript iframe embed method at which point the url can be anything. I've never attempted using a sub-domain, just did not see the point.

> **Comments:**
> **username_0**: Thanks Chris! Followup for anyone else who finds this question - the vanilla folder is going to live in `/public`  

---

