Invite and base URL 404s
  • formlovesformloves
    Posts: 27
    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?
  • formlovesformloves
    Posts: 27
    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?
  • formlovesformloves
    Posts: 27
    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?
  • formlovesformloves
    Posts: 27
    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
    Posts: 4,880
    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]
  • formlovesformloves
    Posts: 27
    @Mark, that did the trick! Thanks a million!
  • MarkMark
    Posts: 4,880
    I love it when a plan comes together.
  • formlovesformloves
    Posts: 27
    not so much a plan as a targeted, strategic strike. Well done.
  • formlovesformloves
    Posts: 27
    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

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 3

Dan Devinepaintballer82422