Support » Plugin: Redirection » Redirect posts but not archive page

  • Resolved Johannes

    (@fumow)


    Hi,

    I have a static page (/rezensionen) that includes my posts.

    Each of those posts’ urls looked like this
    before: /rezensionen/name-of-post
    after: /rezension/name-of-post

    With my current settings the posts get redirected perfectly.
    Unfortunately it also redirects the static page from /rezensionen to /rezension.
    This results in a 404 page.

    How can I only redirect the posts below /rezensionen/ ?

    My current redirect is: https://snipboard.io/zYEk6M.jpg

    Thanks,
    Johannes

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

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

    (@johnny5)

    You need to modify your expression so it doesn’t match /rezensionen/. If you use an expression tester (https://regex101.com) you can see an explanation of your expression, and note that .* matches 0 or more characters. If you use .+ it matches 1 or more, and so won’t match /rezensionen/ itself.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect posts but not archive page’ is closed to new replies.