• Resolved kathiklaudel

    (@kathiklaudel)


    Dear Support,

    I′d like to change my URL-structure to get rid of the date in all of my posts. But when I do that Backlinks, Social Media Posts with Links aso. won′t work anymore.

    Is it possible to redirect all pages to the new structure?

    With help of WordPress Support we tried like this:

    https://d.pr/i/QRuk9e

    But it didn’t work. What did I do wrong?

    Thanks a lot!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author John Godley

    (@johnny5)

    Yes, the plugin doesn’t support permalinks. You will need to use a regular expression:

    https://redirection.me/support/redirect-regular-expressions/

    Thread Starter kathiklaudel

    (@kathiklaudel)

    Hi John,

    thanks a lot! Problem is – the date is obviously always different of course. So I can not use one expression or can I? And the new expression would be nothing, because I only want to get rid of the date, not set a new word or something.

    Maybe my English or website skills are not good enough to understand fully.

    What do you think? Is it possible for me to get rid of the dates in the URLs?

    Thanks again!

    Plugin Author John Godley

    (@johnny5)

    Sure, that’s what a regular expression is for. There are examples at the bottom including one specifically for your situation.

    Thread Starter kathiklaudel

    (@kathiklaudel)

    I saw them but if I understand right I have to redirect each single article, which are quite a lot.

    Plugin Author John Godley

    (@johnny5)

    No, as described on the page:

    A regex URL can match many URLs.

    Thread Starter kathiklaudel

    (@kathiklaudel)

    I obviously don’t understand the article then. A little bit more help here would be much appreciated.

    Thank you very much!

    Plugin Author John Godley

    (@johnny5)

    A regular expression allows you to create a redirect that matches many URLs. The page provides a lot of information, and an example that exactly matches your situation: ‘Redirect date and name permalink’

    Thread Starter kathiklaudel

    (@kathiklaudel)

    Yes, I tried that in many different ways. All of them didn′t work!

    Thread Starter kathiklaudel

    (@kathiklaudel)

    /2020/10/28/beispielbeitrag/
    /beispielbeitrag/

    /2017/01/01/thing/
    /thing/

    ….

    That doesn′t work! Still the links won′t redirect to those articles.

    Plugin Author John Godley

    (@johnny5)

    Can you show what you have tried? Maybe include a screenshot (which you will need to store elsewhere as it’s not supported in the forums).

    Can you provide a full URL?

    Have you cleared all of your site caches?

    Thread Starter kathiklaudel

    (@kathiklaudel)

    Plugin Author John Godley

    (@johnny5)

    Ok, so you don’t appear to have created a regular expression, and have instead created two redirects that don’t match any of your examples.

    For reference, the example on the above guide shows you should create this redirect:

    ^/\d{4}/\d{2}/\d{2}/(.*)

    And that you should enable the regular expression option. It would be useful if you read the guide that I referenced.

    Thread Starter kathiklaudel

    (@kathiklaudel)

    I tried that one:

    Source: ^/\d{4}/\d{2}/\d{2}/.*?/(.*)
    Target: /$1/

    as well, but then the newest link is completely broken. The older ones redirect on the main site instead of the specific article they should.

    Plugin Author John Godley

    (@johnny5)

    What newest link is completely broken? What do you mean by the older ones redirect on the main site instead of the article?

    Thread Starter kathiklaudel

    (@kathiklaudel)

    And yes you′re right I did miss the part to enable the regex option which I did now. But still no success.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Redirect all pages at once’ is closed to new replies.