• Resolved amichaelwagner

    (@amichaelwagner)


    Morning!

    Just noticed a new behavior that didn’t happen before: Whenever my redirected links include www (e.g., ‘www.easiercast.com/29’), they land on the admin login page. But, when they have no www, or they include https://, the redirect works properly (e.g., https://easiercast.com/29).

    Any idea what could be causing this?

Viewing 15 replies - 16 through 30 (of 30 total)
  • Plugin Author John Godley

    (@johnny5)

    Yes I’d like to troubleshoot it if I can. I don’t use Facebook, but can be contacted at https://redirection.me/contact/

    Thread Starter amichaelwagner

    (@amichaelwagner)

    I’ve turned Force HTTPS back on.

    I figured it’d be easier to chat (instead of messaging back and forth on here). Do you have a tool you prefer?

    Plugin Author John Godley

    (@johnny5)

    Ok, these are the URLs I’ve tested and the resulting redirect:

    https://www.easiercast.com/29 => /learn-to-tell-amazing-stories-with-these-13-tips
    https://www.easiercast.com/29 => /learn-to-tell-amazing-stories-with-these-13-tips
    https://easiercast.com/29 => /learn-to-tell-amazing-stories-with-these-13-tips
    https://easiercast.com/29 => /learn-to-tell-amazing-stories-with-these-13-tips
    https://www.easiercast.com/27 => /use-social-media-to-boost-your-business-w-shelbi-moore-2
    https://www.easiercast.com/27 => /use-social-media-to-boost-your-business-w-shelbi-moore-2
    https://easiercast.com/27 => /use-social-media-to-boost-your-business-w-shelbi-moore-2
    https://easiercast.com/27 => /use-social-media-to-boost-your-business-w-shelbi-moore-2

    Assuming the option is enabled then everything seems ok for me.

    Have you tried when not logged in?

    What are your URLs on the Settings > General page?

    Thread Starter amichaelwagner

    (@amichaelwagner)

    Did you try them without https://? It only happens when a URL is entered with www. (and not https://). Just want to confirm that.

    Example:
    www.easiercast.com/28

    I always test in an incognito window, and it happens there. I also just tried on my phone: same result.

    Thread Starter amichaelwagner

    (@amichaelwagner)

    Also, by the way, I have every number from /1 to /31 set as a redirect. Feel free to test with any of those pages, too.

    Plugin Author John Godley

    (@johnny5)

    As I mentioned before, there is no such thing as a URL without https:// – a URL either has https:// or https://, and your browser will auto-add one of those if you don’t.

    So yes, I have tested both variants of http and https, with and without www.

    Based on this the problem seems to be local to you, for some reason.

    My guess is that it’s a cache somewhere.

    Thread Starter amichaelwagner

    (@amichaelwagner)

    I understand that every URL has to have HTTP or HTTPS, but this is the way I am able to replicate the problem.

    As I’ve said, I’ve tried it across a number of devices and it still occurs. It’s not possible that it’s local to me. I even just remoted into my work server (yes, the server) and tried it from there. It still occurred. It’s not possible that it’s occurring locally.

    Plugin Author John Godley

    (@johnny5)

    Have you at least tried entering the URL the way I explained?

    It really makes no difference – it’s still the same as a https:// request.

    However, I have been able to reproduce the /wp-admin/ redirect problem by following the path one step further.

    The issue isn’t with the original URL. For example, https://www.easiercast.com/29 is being correctly redirected to /learn-to-tell-amazing-stories-with-these-13-tips with Redirection.

    The problem is with https://www.easiercast.com//learn-to-tell-amazing-stories-with-these-13-tips itself – this is redirecting to https://easiercast.com/wp-admin/, and it’s not caused by Redirection.

    Can you tell me what your URL settings are on Settings > General?

    Thread Starter amichaelwagner

    (@amichaelwagner)

    Both are set to https://easiercast.com

    Plugin Author John Godley

    (@johnny5)

    The problem only happens with this:

    https://www.easiercast.com/learn-to-tell-amazing-stories-with-these-13-tips

    That is, the protocol is http and www is added. Do you have any other redirect for the www? For example, in your .htaccess?

    Thread Starter amichaelwagner

    (@amichaelwagner)

    There’s a good chance that Bluehost added redirects. I’ll check.

    Thread Starter amichaelwagner

    (@amichaelwagner)

    # BEGIN WordPress
    AddHandler application/x-httpd-ea-php70 .php
    <IfModule mod_expires.c>
    	ExpiresActive On
    	ExpiresByType image/jpg "access plus 6 hours"
    	ExpiresByType image/jpeg "access plus 6 hours"
    	ExpiresByType image/gif "access plus 6 hours"
    	ExpiresByType image/png "access plus 6 hours"
    	ExpiresByType text/css "access plus 6 hours"
    	ExpiresByType application/pdf "access plus 1 week"
    	ExpiresByType text/javascript "access plus 6 hours"
    	ExpiresByType text/html "access plus 10 minutes"
    	ExpiresByType image/x-icon "access plus 1 year"
    	ExpiresDefault "access plus 3 hours"
    </IfModule>
    <ifModule mod_headers.c>
    Header set X-Endurance-Cache-Level "2"
    </ifModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I don’t see any, but this isn’t my area of expertise.

    Plugin Author John Godley

    (@johnny5)

    Yeah, nothing there. It’s possible this redirect is happening at a higher level.

    I’m still not sure what’s going on, but there’s a few extra clues there and I can try and reproduce a www setup, or even get a site on bluehost. For the moment I’d switch ‘force https’ off.

    I’ll report back here if I find any more info. Thanks for all the debugging time!

    Thread Starter amichaelwagner

    (@amichaelwagner)

    It could be related to the SSL cert that Bluehost set up for me. If you do go the route of getting a site there, ask their support to set up the cert for you. Or, at least, ask how they would. Might provide clues.

    Let me know if you need anything else!

    Feel free to email me directly if you prefer: [email protected]

    Plugin Author John Godley

    (@johnny5)

    Noting that this problem should be fixed in 4.1.1

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Redirect / www’ is closed to new replies.