Support Forum

direct links do not load unless /forum is visited 1st

BA bauerm
bauerm
Member

This is an intermittent problem, but annoying nonetheless.  Often the links aimed at a given forum topic or post that we provide on our site will 404 the member (including Admin) unless they had already loaded the main forum page first.

Any suggestions or insights will be greatly appreciated.  Thanks.

Here are the plug-ins we’re using:

WP Plugins   Advanced Recent Posts Widget (1.1a)
Clean Archives Reloaded (3.2.0)
Enable Media Replace (2.6)
Exclude Pages from Navigation (1.92)
Flexible Lightbox (1.0.4)
FV WordPress Flowplayer (1.2.16)
Google Analyticator (6.2)
JW Player Plugin for WordPress (1.6.0)
Member Access (1.1.6)
Peekaboo (1.1)
PilotPress (1.5.5)
Quick Cache (111203)
Redirection (2.2.13)
Simple:Press (5.1.1)
Simple Login Log (0.9.2)
Simple Tags (2.2)
Text Expander (0.3)
Theme My Login (6.2.1)
TinyMCE Advanced (3.4.9)
vSlider (4.1.2)
Widget Logic (0.52)
Widget Shortcode (0.2)
WordPress Tabs Slides (2.0.1)
WP-ImageFlow2 (1.6.5)
WP-Mail-SMTP (0.9.1)
WP Search (2.0.4.0)
SP Plugins   Admin Bar (1.1)
Editor (TinyMCE – Rich Text) (1.1.3)
File Uploader (using Plupload) (1.1.4)
Post Preview (1.0.1)
Post Ratings (1.1)
Profanity Filter (1.1.1)
Subscriptions (1.1)
Template Tags and Widgets (1.1.2)

27 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Well that’s a new one on me!

What does the ‘Redirection’ plugin do and how does it work?

BA bauerm
bauerm
Member

The original front page of theme did not fit our needs, so we created a new page and made that the front page.  The Redirection plugin redirects users from that old front page, to the new one.  I tried using the wordpress “Static Front Page” option, but that didn’t seem to work.  I also tried using a simpler Redirection plugin, but it didn’t work either for re-directing the front page.  The redirection plugin is rather robust with lots of different options and things I don’t fully understand.

YS Yellow Swordfish
Yellow Swordfish
Member

Well… WordPress keeps a tab on all the internal urls by what is known as rewrite rules. This is how SP can load all of it’s various and different urls into a single WP page. It almost sounds like these are getting cleared out by something from time to time and then not getting rewritten again properly.

You could try going to the forum admin > integration > page and permalink panel and manually clicking on update permalinks. This will cause a flush and rewrite of the rules. But of there IS some other party removing them then the problem may continue.

In amongst all of the options in this redirection plugin are there (1) any mention of rewrite rules and (2) anywhere where you can exclude specific urls or pages from its clutches? I may be wrong but this is where my suspicion is at the moment…

BA bauerm
bauerm
Member

I do have a Caching plugin (quick Cache) that we use to clear the cache when we’re making updates and such.  Could that be causing the re-writing problem you are referring to?

In this caching plugin config there is a “No-Cache URI patterns” and a “No-Chache Referrer Patterns” that I have added the /forum/ page to. 

In the redirection plugin I do not see any mention of re-write rules.  As for the (2), there is only where to put the redirections you want, so by omission it should be excluding everything else I assume.  I do have /forums/ and /forums redirecting to the proper /forum/ 

YS Yellow Swordfish
Yellow Swordfish
Member

Good call on the cache. That looks right. I doubt it messes with the rules – it would be most odd if it did. I actually tried this plugin quite recently and coudn’t get it working at all…

May I ask why you are redirecting the forum? Is this because you have changed the page slug or anything? Why not just change the slug to ‘forums’ if that is a preference? This could have something to do with it…

Although – there was a hint that this happens on non-forum pages from time to time as well which does suggest a more global issue.

BA bauerm
bauerm
Member

I was redirecting forums to forum just because I saw some users typing in “forums,” but I’ll delete that redirect since most seem to click on the link to the forum.

But yeah, the 404s happen with non-forum pages, posts, forum topics, threads, general forums, and everything.  But it seems to happen most often with the forum pages and topics, which is what lead me here.  But now I’m thinking it’s probably a different issue/plugin that’s causing it.  I have a post in on the Redirection plugins support forum, but they are far less responsive.  🙂

MP Mr Papa
Mr Papa
Member

let us know what they say… 

seems like you should only have one redirection (old front to new) right?  most everything else should be disabled…

have you just tried a simple .htaccess redirect for the one page?  you might find it much simpler…

BA bauerm
bauerm
Member

I only have 2 redirections, the main page and one from an old popular post to a page.

I would try a simple .htaccess redirect if I knew how to do that.  That’s a bit over my head.  I will look into how to do that though.

Still no word from the redirection plugin forum.

BA bauerm
bauerm
Member

Well all my attempts at adding a redirect to the .htaccess file failed.  Not sure what I am doing wrong, I tried many different tutorials and set-ups.

YS Yellow Swordfish
Yellow Swordfish
Member

Well I don’t know how to do an .htaccess redirect either. But it makes sense and would allow you to remove a plugin. I will endeavour to find out!

MP Mr Papa
Mr Papa
Member

can you give example of what url you want to redirect? and the url you want to redirect to?

BA bauerm
bauerm
Member

The original site is http://mywebsite.com/WPsite

I am redirecting that to:

http://mywebsite.com/WPsite/welcome/

The reason why that address looks weird is because the wordpress site is installed into a subfolder of the main website (the subfolder being /WPsite).  But our needs ended up out growing the original design of the theme’s “home” page which is why we created a custom page called “welcome” to serve as the new home page.  So /WPsite is the index (but does not have any page associated with it) and /WPsite/welcome/ is simply a wordpress page.  

BA bauerm
bauerm
Member

Here is what my current .htaccess looks like

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /WPsite/
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /WPsite/index.php [L]
</IfModule>

# END WordPress

I tried several different methods, but the most common result was getting stuck in an infinite redirect loop, even after disabling and removing the plugin.

YS Yellow Swordfish
Yellow Swordfish
Member

Steve (Mr Papa) will be around later on and he is the one who knows these things!