redskytom
Forum Replies Created
-
Having the same issue where this is causing issues with using the wp cli. Added a check to mine to not run if using the wp cli but would like to see this fixed as it also breaks part of our build pipeline.
Forum: Plugins
In reply to: [Redirection] Converting a 404 to a 410Thanks John,
I think the part that confused me was that if the only setting I changed was to instead of 410’ing it that I 301’d it, the 301 worked. Meaning it determined that the post was a 404 and that it met the REGEX and 301’d. Also we have no custom code or other plugin involved as the redirection is “The Plugin” when it comes to dealing with WordPress. 😉But maybe I was misinterpreting what I was seeing. I have since moved on to another method but am still curious.
Cheers
Forum: Plugins
In reply to: [Redirection] Converting a 404 to a 410So just as a follow up in case my query is confusing.
- The regular expression covers all the URL’s being removed plus what remains in the folder.
- Used the URL and WordPress page to match 404’s of the deleted content
- Set the when matched to be a 410
After doing that the Response Code as seen in the Network Tab was a 404 instead of a 410.
Under this setup the only thing that worked was setting a 3XX.Perhaps this is something that the plugin was not meant to do and instead we should either code a solution or maybe do a combination with say a custom filter that just checks the if page is 404 and returns a boolean.
Anyway was just curious what the community thought as I am new to all things WordPress as Drupal has always been my personal flavour.
CheersForum: Plugins
In reply to: [Redirection] Regex does not workHave you checked the RegEx checkbox?