Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Problem embedding 2.1 in a simple web page - 404 error

I downloaded and installed Vanilla 2.1 on a ubuntu box, and all works well when vanilla is run stand-alone.

I turned on universal embedding in the dashboard, and copied/pasted the embed code into a simple page, foo.html. When I load foo.html, the javascript debug console gives a 404 file not found error. I tried the .htaccess and "RewriteUrls" suggestions at the link below, but the result is the same.

Any idea what's going on?

The error displayed in the chrome javascript console is:

http://localhost/twio/forum/vanilla/index.php?p=/js/embed.js 404 not found

My HTML page is at http://localhost/twio/forum/foo.html:

    <script type="text/javascript" src="http://localhost/twio/forum/vanilla/index.php?p=/js/embed.js"></script>
    <noscript>Please enable JavaScript to view the <a href="">discussions powered by Vanilla.</a></noscript>
    <div class="vanilla-credit"><a class="vanilla-anchor" href="">Discussions by <span class="vanilla-logo">Vanilla</span></a></div>

.htaccess in the vanilla directory has:

RewriteBase /twio/forum

And I've changed config.php to include:

$Configuration['Garden']['RewriteUrls'] = TRUE;



Sign In or Register to comment.