• Resolved anyway

    (@sfdsfwer)


    Hi,

    thanks a lot for sharing this great plugin. I currently need this for something specific.

    I have removed the date slug from the permalinks of my blog and now I want to remove it from the internal linking as well. So from all links that are in the content and are on the same domain. Of course, this has to be done in a way that the date slug of linked media files is not affected as well, because it is still needed there.

    Which settings do I have to use to make this work reliably?

    The blog is located in a subdirectory /blog/

    So the old links have this structure:
    https://www.example.com/blog/2017/04/an-article/

    The new links should look like this:
    https://www.example.com/blog/an-article/

    Thank you!

    • This topic was modified 2 years, 2 months ago by anyway.
    • This topic was modified 2 years, 2 months ago by anyway.
    • This topic was modified 2 years, 2 months ago by anyway.
    • This topic was modified 2 years, 2 months ago by anyway.
Viewing 1 replies (of 1 total)
  • Thread Starter anyway

    (@sfdsfwer)

    Okay, I fiddled it out… the following seems to work.

    ..

    Source: Posts (core & custom) Filters: Posts (core & custom)

    Filters: Posts (core & custom) > Posttype > Includes any > Posts

    Search: \/blog\/([0-9]+)\/([0-9]+) Flags: Regex

    Action: Global Text Replace

    Replace: /blog

    ..

    This is a really cool plugin!

    • This reply was modified 2 years, 2 months ago by anyway.
    • This reply was modified 2 years, 2 months ago by anyway.
Viewing 1 replies (of 1 total)
  • The topic ‘How to remove date slug from content links on same domain’ is closed to new replies.