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.

WordPress Hijacks Vanilla Pretty Permalinks?

edited November 2010 in Vanilla 2.0 - 2.8
I've enabled pretty permalinks (in config.php) but it seems that my WordPress setup is hijacking the links!

After setting $Configuration['Garden']['RewriteUrls'] = TRUE; and clicking on any links on the forum, I'm taken to the WordPress 404 page.

I've searched before and come across this existing thread, but there isn't a solution there.
http://vanillaforums.org/discussion/10643

Here's the setup:
- WordPress installed at root of http://fordauthority.com
- Vanilla 2.0.15 installed in /forum directory - so http://fordauthority.com/forum/
- If I don't enable pretty permalinks, the above behavior does not occur
- My server info is available at http://fordauthority.com/forum/phpinfo.php

Thanks in advance for any help, I really appreciate it.
«1

Comments

  • Bump - really need some help guys :(
  • LincLinc Detroit Admin
    Did you upload the .htaccess file to the /forum directory?
  • I have a .htaccess in /forum but it was already there. Is there a specific file that I need to get to upload in there?
  • LincLinc Detroit Admin
    There's an .htaccess file distributed with Vanilla that needs to be there.
  • Didn't know that; I just uploaded the .htaccess file but it's still happening.

  • Can you show us an example link on which you get 404?

    /cd
  • @cdavid It's every single link on the forum.

    For example:
    http://fordauthority.com/forum/activity
    http://fordauthority.com/forum/discussions

    Clicking them redirects to the WordPress install at root
  • Oki, last question ... what webserver do you use? Is it by any chance LigHTTPD? Or Nginx?

    Because, even though the pretty URL-s are enabled, apparently the .htaccess file doesn't do its job right -- e.g.: going to http://fordauthority.com/forum/index.php?p=/discussions goes to the proper site.

    So, you are either running something else than Apache (which doesn't seem to be the case given your phpinfo() file), or, the most likely, there is something screwed up in your Apache conf.

    So, (if running Linux) in your etc/sites-available/__website_name.conf you should have something like:
    <Directory /var/www/__ford__> AllowOverride All </Directory>
    if you have that, I have no idea...

    /cd
  • I'm pretty sure I'm on Apache; it's a GoDaddy shared hosting environment. (their official name is "Linux shared hosting."

  • Guys, I still need some help here... really bad. Simply put, the pretty permalink structure on my install doesn't work. I'm on GoDaddy...

    Interestingly, WP works just fine with pretty permalinks/rewrites on. I would really appreciate any and all help... even willing to pay!
  • sashok,

    Make absolutely that your WordPress structure is not using the /forum branch. Take a look at the URLs for each page in the WP admin panel to check. If Vanilla tries to use a directory structure that is used by WordPress, there will be a conflict.

    Good luck.
  • Grantswaim - thanks for your help!

    I have WP at root and Vanilla at /forum

    There's a WP menu button linking to /forum

    How would I make sure that my WP is not using the forum branch? I'm just a bit confused :)

    Thanks!
  • sashok,

    It might take a few minutes but the best way is to open each page in the WordPress (WP) admin panel and look at the URL assigned to it. You can see it at the top.

    For example if you had made a WP page called "Forum" as a parent (at the root level) WP would assign that page with the URL of "http://fordauthority.com/forum". This could cause a conflict. If this is the case, you would need to change the WP pages/structure to not use this branch.

    If there is a URL structure that works, why not simply use it? The user is clicking a menu choice and wouldn't see the "ugly" link.

    Good Luck!
  • I only have two pages in WP - and neither of them have a /forum/ link. I just checked and double-checked.

    If the feature is in Vanilla, why not be able to use it? I'd rather open the forum with pretty links than open it with long links, let content and users build it, and then switch the links overnight -- causing all sorts of SEO havoc. Pretty links are there for a reason -- they're easier on the eyes (for those users who prefer to browser by typing)... I'm just trying to get them to work.

    Any help from anyone and everyone would be greatly appreciated :)
  • edited January 2011
    You could also use the embed plugin and not have to deal with Vanilla URLs. This plugin would (by default) embed the forum on a WP page named "Discussion". You then send users to "http://fordauthority.com/discussions".

    You can see Vanilla embedded on a WP page at my site; however, it requires logging in. I will send you login info in a private message so you can see.

    Later...
  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭
    Same problem here. Any solutions?
  • I haven't found or seen anything yet. Embedding is nice but not the optimal solution for me. This needs to work! Any help, guys?
  • digibluezdigibluez New
    edited August 2012

    `

    Original

    If you modify this file then change the above line to: # Modified

    RewriteEngine On

    # Certain hosts may require the following line.

    # If vanilla is in a subfolder then you need to specify it after the /.

    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)

    #RewriteBase / <<<<<<<<<<<<<<<<<<<<UNCOMMENT AND CHANGE

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]


    `

  • Hi i am facing the same issue on my wordpress blog after changing the permalinks . can u please help me in resolving it.@sashok how did u resolve it ?

Sign In or Register to comment.