• Resolved shortstrokes1

    (@shortstrokes1)


    When working with the Wordfence plug-in, I can’t get to some functionality. Clicking on some links takes me to my home page, rather than the intended spot. Some examples:

    1. In Wordfence Scan. link text: “See how the file has changed.” When I click on it I’m taken to my home page.

    2. In Live Traffic, link text: “See recent traffic”. Goes to my home page.

    3. In Options, link text: “Click to test connectivity to the Wordfence API servers” and the others underneath it, “Click to view your system’s configuration…”, etc. They all go to my home page.

    In each case the URL is to my home page, with query params. http://kenblackman.com/?…

    My guess is there’s a path that’s missing…?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WFMattR

    (@wfmattr)

    This is usually conflict with the theme — some themes take over and display the site before letting WordPress (and plugins) handle the query string.

    If you try temporarily switching to a default theme like ‘twentyfifteen’, you should see the links working correctly. If that does work, you can notify the theme author about the issue, and they would have to release an update, in order to fix it.

    If there is still trouble even when using twentyfifteen, let us know.

    -Matt R

    Hi,

    I had the same issues but it doesn’t work even if switching to theme “twenrysixteen”.
    And then the words WFMattR mentioned about “query string” let me figure out one thing:

    # Remove extra Query Parameters from URLs (all URLs to point to the canonical version.)
    
    <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteCond %{QUERY_STRING} !=""
     RewriteCond %{QUERY_STRING} !^p=.*
     RewriteCond %{QUERY_STRING} !^s=.*
     RewriteCond %{REQUEST_URI} !^/wp-admin.*
     RewriteRule ^(.*)$ /$1? [R=301,L]
    </IfModule>

    After I removed the codes above from .htaccess, the issues are all cleared and all test, connection work!

    Shouldn’t I use the codes any more or will Wordfence plugin fix for this issue?
    Website:

    Thanks,
    Green

    Plugin Author WFMattR

    (@wfmattr)

    @green: I haven’t seen that .htaccess code before, but did find an article that recommended adding it. Wordfence does use query strings for certain functions, and many other plugins do as well (as well as parts of Google Analytics) — I wouldn’t recommend using that .htaccess code unless you have a specific need to remove almost all query strings.

    -Matt R

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Broken links in Wordfence plugin, go to home page = can't access some features’ is closed to new replies.