• Resolved stellaa

    (@stellaa)


    I added redirection in rankmath from (.*) to $1 but not working and all pages of my website except the home page are unavailable. pleas help me.

    https://ponel.ir/

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

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

    (@stellaa)

    Hello

    I will explain with an example ,

    I already had a post with this url:
    https://ponel.ir/website

    I changed the url to this:

    https://ponel.ir/why-reason-website

    And now I want to change the url again to the original address:

    https://ponel.ir/website

    If the type is exact, the page will not come up, but if the type is regex, the page will come up.
    I have more than 1000 posts and I can’t change the type to regex one by one.
    That’s why I added this redirect from (.*) to $1 by type regex for redirecting all the posts on my site at once, but it doesn’t work.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @stellaa,

    Thank you for contacting Rank Math support.

    Redirecting (.*) to $1 using regex means that you are redirecting the URLs to themselves. This won’t work and cause issues with all the pages of the site. Since you want to redirect specific URLs, you must use the Exact match and created redirects for each slug separately.

    If the Exact redirections are not working, please share an actual URL and the screenshot of the redirection rule you have created for it so we can check further.

    You can use a tool like https://imgur.com/ to share screenshots. Looking forward to helping you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.