Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tgcjames

    (@tgcjames)

    I’m sorry, I don’t think you’re quite understanding what I’m trying to do. Or maybe I’m just not getting it or not explaining it very well…this is probably a pretty specific/odd/rarely-encountered problem

    I have these 404s:

    /https:/www.domain.com/page1/
    /https:/www.domain.com/page2/
    /https:/www.domain.com/page2/child
    ...

    I want to create a regex or whatever that will turn them into:

    /page1
    /page2
    /page2/child
    ...

    I want to do this by selecting all of them and using the bulk edit option to only do it once using a regex or variable or something instead of doing it for dozens/hundreds of 404 groups individually.

    I tried just putting /.* in the target URL field, but that doesn’t work.

    I also tried creating a redirect with /https:/www.cdsofficetech.com/.* in the source and .* in the target, and that doesn’t work.

    All of these errors have the same root problem: /https:/ instead of https:// (probably a bone-headed copy/paste somewhere—that gives me another idea, though: I’ll see if I can do a find/replace in the DB and avoid redirects altogether).

    Anyway, sorry if I’m being difficult or dense! For the most part, I’ve found this plugin to be very helpful and fairly simple to use!

    Thread Starter tgcjames

    (@tgcjames)

    I know that part, that’s where I found the 404s to begin with 🙂

    What I’m trying to figure out is, if I click the checkbox next to each of the detected 404s, then click “redirect all,” how do I fill in the destination box in order to make that just work?

    For example, I say I have the following detected 404s:

    /https:/www.domain.com/page1/
    /https:/www.domain.com/page2/
    /https:/www.domain.com/page2/child
    ...

    And so on (there are dozens, maybe hundreds). I have them grouped by URL. In the list of 404s, I can click a checkbox next to each of the groups, then go up to “bulk actions” and change it to “redirect all.” Is there a way to fill in the target URL field that will essentially remove /https:/www.domain.com and leave the page slug? I know I can do it on each 404 individually, but if I could knock out all of them at once with some kind combination of variables or wildcards or whatever, that would save me a ton of time 🙂

    • This reply was modified 6 years, 10 months ago by tgcjames.
Viewing 2 replies - 1 through 2 (of 2 total)