Viewing 8 replies - 1 through 8 (of 8 total)
  • Tyler

    (@tylerthedude)

    Hi Nathan,

    Thank you for reaching out. I tried viewing the response headers on one of the links redirecting to /wp-admin, and it looks like there’s an “X-Redirect-By” header included that indicates the redirect is being handled by the iThemes Security plugin: https://share.cspf.co/NQuW4WZ6

    It seems like all of the links that are redirecting to /wp-admin are using HTTP as the protocol so you might check if there’s a setting in their plugin that’s redirecting non-HTTPS requests.

    I hope this helps!

    Kind regards,

    Thread Starter nathanagin

    (@nathanagin)

    Thanks, Tyler! We do have “Enfore SSL” selected in iThemes and I would agree with the assessment, except https://rethinkhomeinteriors.com/eval is redirecting correctly.

    More info on that iThemes feature here.

    So why would https:// work, but https://www won’t?

    Also, how are we able to check the headers for a Pretty link redirect? Once the page redirects to the final destination, I’m unable to check the headers for the /eval link – I can only check for /wp-admin or the target page.

    • This reply was modified 1 year, 7 months ago by nathanagin.
    Tyler

    (@tylerthedude)

    Hi Nathan,

    Thank you for getting back to me. Unfortunately, I’m not quite sure why https:// would be redirecting correctly while https://www wouldn’t be but it seems like in both cases iThemes Security handles the redirect from HTTP to HTTPS.

    Whenever I visit https://rethinkhomeinteriors.com/eval, the first 301 redirect is from iThemes Security and it takes the user to https://rethinkhomeinteriors.com/eval. Whenever the user is taken to this URL, the redirect from Pretty Links kicks in and they’re redirected to the Target URL: https://rethinkhome.lpages.co/styling-evaluation-sales-page/

    You might try temporarily disabling the “Enforce SSL” option to verify that the redirect works for both https:// and https://www, and if it does then I’d try reaching out to iThemes and seeing what might be causing the problem when visiting the site using “www”.

    To view the redirect headers, I open the browser developer tools (Ctrl + Shift + I for Chrome) and then click the “Network” tab if it isn’t open already. After this, I enable the “Preserve log” option and then visit the URL. Under the “All” section, you should be able to find the redirect near the top of the listing and you’ll be able to click on it to view the Request and Response Headers.

    I hope this helps!

    Kind regards,

    Thread Starter nathanagin

    (@nathanagin)

    Thanks for the helpful ideas, Tyler! I tested the redirects with the Enforce SSL turned off and there was no change (3 correct redirects, 3 incorrect redirects, as listed originally). When I disabled the entire iThemes plugin, the 3 previously correct were fine and only this one additional redirect then behaved correctly (but only in Firefox – all 3 were still incorrect in Chrome):

    rethinkhomeinteriors.com/eval

    The two versions with “https://www…” still redirected to /wp-admin, so something else appears to be going on with these Pretty Links redirects. Even using your redirect header instructions, what’s odd is that the redirect still appears to show as “iThemes Security” but the .htaccess has no code referencing iThemes, so I’m unclear how iThemes is controlling the redirects even when the plugin is deactivated.

    I did come across this post referencing the same issue and someone mentions an updated function (wp_safe_redirect()) in a recent update to iThemes, but it’s not definitive and again, even with the plugin turned off, the redirects are behaving improperly.

    Tyler

    (@tylerthedude)

    Hi Nathan,

    I hope you’re doing well today. I’m noticing that the 301 redirects are being cached, so you might try purging any caching you have set up on your site and/or the server and see if that helps to prevent the redirect to /wp-admin and removes the redirect header from iThemes Security.

    Kind regards,

    Thread Starter nathanagin

    (@nathanagin)

    Thanks, Tyler! I logged into the hosting and even though the cache settings are set to 0 or N/A, I tested by clearing them and trying the links.

    I also rolled back iThemes to 8.1.4 and I believe ALL 6 links are currently redirecting properly.

    Could you test that on your end too? If that’s the case, I’ll reach out to iThemes about their recent update. Thank you!

    Tyler

    (@tylerthedude)

    Hi Nathan,

    I’m glad to hear you were able to figure out the culprit. I tried accessing all 6 of the original links, and they appear to be redirecting correctly to the https://rethinkhome.lpages.co/styling-evaluation-sales-page/ now.

    Kind regards,

    Thread Starter nathanagin

    (@nathanagin)

    Thanks, will follow up with iThemes!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Certain links redirecting to /wp-admin’ is closed to new replies.