Support Forum

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

27 Answers

New Answer

MP Mr Papa
Mr Papa
Member

that’s an interesting question since what you are really trying to do is redirect the main wp page (ie index.php in root) to somewhere else…   I could see why you might get loops and why even the redirection plugin is having problems (probably greedy wp rewrite rules vs .htaccess)…

but if you have not tried:

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

at the very top of the file, give it a shot… of course, make sure the redirection plugin is not active…

that rewrite may be too greedy too, but worth a shot…

BA bauerm
bauerm
Member

That one looks familiar I think I did try that one.  I tried it again though and it doesn’t cause a loop, but it also doesn’t redirect the “home” button that the theme forces on.  The only thing I have found that actually accomplished that is the Redirection plugin. hmmmm

The creators of the theme said this when I asked how to hard code the address for the home button

You could do this manually using the 

is_user_logged_in()

 function. You could put this into the index.php file and then put the code you want to appear if the user is logged in inside curly braces. You’ll need very good knowledge of PHP to do this, and there’s very little I can do to help if you’ll be creating your own content.

I don’t have very good knowledge of PHP, but this is what I’ll research next.  Any pointers would be appreciated!  🙂

Thanks for all your help!

YS Yellow Swordfish
Yellow Swordfish
Member

They are probably suggesting you try something like…

if ( is_user_logged_in() ) {
    wp_redirect( 'http://mywebsite.com/WPsite/welcome/' );
}

at the bottom of the index.php file. Not sure of that will work or not to be honest.

BA bauerm
bauerm
Member

Could a conflict with RSS be the culprit?

Our Redirection plugin logs 404 errors and reports 2 at the same time for a link on our landing page that is aimed at a specific forum topic.

Here is how the original link appears as posted [/forum/general-6/enhanced-search-results-from-tuesdays-conference-call/] and here is the rss link that appears at the same time in the error log [/forum/rss/{33CharacterKeyString}/?group=6]  The former is shown in the URL bar when it 404s though.

I noticed the Redirection plugin has an option to provide a RSS Token.  It reads:

A unique token allowing feed readers access to Redirection RSS (leave blank to auto-generate)

Our forum has feedkeys for private RSS feeds enabled.

Our site requires users to login, so do we need said feedkeys set to privatel?

MP Mr Papa
Mr Papa
Member

without feedkeys, your rss feeds will be viewable by all…  if you have private forums, ie require login and permissions, you will want to use feedkeys…

but I dont understand your point…  you reference our group rss feed… and forum topic feed… but they are not the same and dont display the same info…

what is your redirection plugin doing?  really needed? can you tell it to ignore the forum page (most of the good ones I have seen can)?  its probably misinterpreting or not reading the forum url rewrite rules…

BA bauerm
bauerm
Member

Thanks for the reply Mr Papa,

I was reminded that this intermittent issue existed before we installed the redirection plugin.  I suppose that puts us back to square one on this.

We will soon have a clone site in place to test on and properly troubleshoot–as we would rather not break the soon-to-be original one for our users.

YS Yellow Swordfish
Yellow Swordfish
Member

Does that mean you want to hold off delving any further until that is in place?

BA bauerm
bauerm
Member

So long as we aren’t disabling any key elements during regular traffic times, I’d be happy to try your suggestions.

YS Yellow Swordfish
Yellow Swordfish
Member

Well I was only going to move on from the redirection discussion to the ‘members access’ plugin and ask you about that and how it works and if there might be something in there that is the root cause.

BA bauerm
bauerm
Member

Member Access was a tool we needed when we had a public landing page.  Now that logging in is required to load any page on our site, we have removed the Member Access plugin all together.  We speculate that PilotPress is part of, if not full-on, the root of our problem.  Turning it off will shut out our members as it integrates so deeply with WP :/

YS Yellow Swordfish
Yellow Swordfish
Member

Not sure why it should be. But there again I have not encountered it before.
Is this something you will be able to remove on your test site when it is up? For testing if this is having any effect?

BA bauerm
bauerm
Member

We plan on testing the clone site with as few plugins enabled as possible and PilotPress will not be included until our redirection/404 bugs are swept out.

YS Yellow Swordfish
Yellow Swordfish
Member

Please do keep this thread alive and keep us informed…