• Resolved millerandco

    (@millerandco)


    I’m a bit of a newbie to redirects and I’m not sure if this possible. I am refreshing a website for a client and we’re switching to a cleaner permalink structure for news posts. Using the redirection plugin, I would like to redirect the posts as follows:

    Source URL: sitedomain.com/anyyear/anymonth/anyday/originalpostname
    Target URL: sitedomain.com/latest-news/category/originalpostname

    I’ve tried different regex combinations but can’t figure out the right one! Any help would be appreciated

    Thanks

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

    (@johnny5)

    You can try the permalink migration feature which makes this easier:

    https://redirection.me/support/site-options/

    Tesoni

    (@adilson-parizi-tesoni)

    Hi John, I installed the plugin and it worked perfectly. But I still have a problem to be solved.
    I would like to activate a 10 second timer, would that be possible? Similar to the html scritp: <meta http-equiv = “refresh” content = “10; url = https: //domain.com” />

    Thank you,
    Tesoni

    Plugin Author John Godley

    (@johnny5)

    No, that is not possible. A redirect is not a meta refresh. Also, the question is unrelated to the original one, and would be better in a new thread.

    Tesoni

    (@adilson-parizi-tesoni)

    Thanks John,

    Sorry for confusing the subject of the topic.

    Thread Starter millerandco

    (@millerandco)

    Thanks John, much appreciated. I will try that.

    Thread Starter millerandco

    (@millerandco)

    Hi John

    Sorry for any confusion – I can’t make it site wide so wondered if a specific redirection is possible.

    This is what I’m trying to do:

    Source: ^/\d{4}/\d{2}/\d{2}/(.*)
    Target: /latest-news/new-category(this needs to be a wildcard)/$1

    Example: /2017/01/01/thing/ => /latest-news/%category%/thing/

    Any help would be appreciated

    Thanks

    Plugin Author John Godley

    (@johnny5)

    There is no way to derive the category from the URL, so you won’t be able to do that. Your only option is to create a specific redirect for each post.

    Thread Starter millerandco

    (@millerandco)

    Ok, understood. Thank you for your help 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Help with a specific redirect’ is closed to new replies.