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.

Invite and base URL 404s

edited March 2010 in Vanilla 2.0 - 2.8
I'm getting a 404 on invite links. This one for example: http://www.formlovesfunction.com/forum/entry/register/5VUQROG4

Not sure if this is related, but the following URLs also 404:
http://www.formlovesfunction.com/forum
http://www.formlovesfunction.com/forum/
http://www.formlovesfunction.com/forum/index.php

Adding a trailing slash works:
http://www.formlovesfunction.com/forum/index.php/

I'd like all of these URLs to work. Is there something I need to tweak within Vanilla? Something on the server configuration?

Comments

  • Here is what WordPress is doing w/ my .htaccess:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]


    # END WordPress

    Is it possible to add a rewrite rule to fix my problem?
  • I managed to get the forum access working but I just found out I'm getting the WordPress 404 when clicking on invite links: http://www.formlovesfunction.com/forum/entry/register/D5637IUL

    Any ideas?
  • Here is what I posted on the WP forums. It's a bit more cogent and comprehensive.
    I have WP installed on the root of my domain and Vanilla 2 installed in a subfolder, /forum. WP seems to work fine before and after the Vanilla 2 install but Vanilla 2 has been troublesome.

    Here is the .htaccess residing in the root folder:
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]


    # END WordPress
    With this .htaccess the only way I could get to the forum was by entering the complete URL; http://www.formlovesfunction.com/forum/index.php/. /forum and /forum/index.php would not work.

    I'm no .htaccess expert but I managed to fix this problem by appending the following to my .htaccess in the root:

    # BEGIN FLF
    RewriteRule ^forum/$ forum/index.php/
    RewriteRule ^/forum/$ /forum/index.php/
    RewriteRule ^forum/index.php$ /forum/index.php/

    #END FLF
    The next problem I ran into was with the links from invitation emails: http://www.formlovesfunction.com/forum/entry/register/D5637IUL

    I get the WP 404 when clicking that.

    Vanilla 2 has a .htaccess included in the source:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]


    If I upload this to the /forum folder the registration invite link works, but the /forum, /forum/, /forum/index.php does not.

    I have asked this question on the Vanilla board but no one has been able to help. Any ideas? Any help will be appreciated.

    I'm happy to provide more information if it will help to resolve the issue.
  • MarkMark Vanilla Staff
    I bet it has to do with your rewritebase. Try adding one to your vanilla 2 htaccess:
    RewriteEngine On
    RewriteBase /forum/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]
  • @Mark, that did the trick! Thanks a million!
  • MarkMark Vanilla Staff
    I love it when a plan comes together.
  • not so much a plan as a targeted, strategic strike. Well done.
  • I had to make another mod to the .htaccess because the http://formlovesfunction.com/forum/ was throwing a 404. This did the trick:

    RewriteEngine On
    RewriteBase /forum/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]
    RewriteRule ^$ index.php/$1
Sign In or Register to comment.