Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

How to find a redirect?

         

Gemini23

4:14 pm on Jul 22, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Tidying up some old redirects - I have found a URL that redirects but I don't know where the redirect is.

I use Woocommerce and Yoast - the redirect isn't in Yoast.

Any suggestions as to how to find where the redirect is and remove/edit it?

tangor

6:01 pm on Jul 22, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have you checked .htaccess ?

lucy24

7:48 pm on Jul 22, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



First check your site access logs and see whether the original request receives a 301/302 or a 200. A 300-class response means the redirect was issued by the server, so there ought to be something in htaccess as tangor says. But a 200 response in server logs means the request was handed off to WordPress, which in turn issued the redirect. If so, you’ll have to pore over your WP settings.

:: looking vaguely around for not2easy due to unshakable conviction that she speaks WP like a native ::

not2easy

8:50 pm on Jul 22, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I didn't get into this one because I am unsure that I understand the situation. Is there a link somewhere in your content that is being redirected with no record of having set up the redirect? There are plugins that can redirect, but you would know if they were set up or used for redirects. Yoast doesn't do that. I have not worked with Woocommerce but I'm pretty sure they don't redirect links without being set up to do that. No one would like that. Is it possible that a 3rd party resource is redirecting? Some ad systems (like Amazon) do that.

I agree that you may be able to locate a specific request in your logs that returns lucy24's signs of redirect with server responses.

Gemini23

1:33 am on Jul 23, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks - a bit late in the day here - there is no redirect set up and nothing in the .htaccess
Yoast has a list of redirects and it isn't in there... checking the URL on redirect.whatever it is... displays 'redirect'.

lucy24

3:34 am on Jul 23, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I forgot to say earlier that the best way to investigate in access logs is to request the page yourself, making note of the time. This makes it easier to find it in logs--look for either the time frame or your own IP--and also confirms that all requests get redirected, because you can see it happening.

checking the URL on redirect.whatever it is... displays 'redirect'.
Not sure what you mean by this. Are you using a utility such as your browser’s Developer Tools, or are you checking via some third-party utility?

Gemini23

5:15 pm on Jul 23, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Okay - resolved this. This was a product that was deleted (some time ago) and a redirect must have been created at the time and is somewhere in the depths of the Woocommerce database (above my pay grade) - resolved the redirect by creating a new product with the same URL (that was being redirected) and the redirect stopped.