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.

Unable to get Vanilla 2 in a subdirectory (eg /forum)


Vanilla 2 is looking nice. We'd like to give it a spin, but can't seem to get it installed outside of the server root. We are attaching it to an existing site, so would like to place it in forums.

Looking at the debug log, it is looking for libraries in the root, even though the path is set to forum.

Does anyone have it working in a subdirectory?

We are able to get the same install working if placed in the webserver root.

Any pointers, or is this still too early?


  • Options
    side note: for some reason when i sign into this discussion disappears. I cant find it. I have to sign out, click into the discussion and login to stay on the page

    anyways.. i am still unable to install v2 on a subdirectory. i can install on a sub-domain though. I think this is a known issue. What ive done, though my vanilla isnt live yet.. i have the sub-directory redirected to the subdomain. so going to redirects to ... not preferred but works
  • Options

    i can ... just cannot resolve the Mod_Rewrite to remove the /index.php/ bit. What is your error page? Maybe post your config.php up so we can have a look.
  • Options
    Edit the .htaccess file and add RewriteBase /forum or whatever your subdirectory is. You can nest it as deep as you want you just have to update the RewriteBase path.
  • Options
    I had a similar problem but with WordPress in the mix. Here is how I ended up solving it:
  • Options
    formloves thanks a Mole! You just solved my problem by this magic line

    RewriteRule ^$ index.php/$1
Sign In or Register to comment.