How to change my blog url structure ? ( Redirect Code )

#194855
  • Resolved Pushkar Agarwal
    Rank Math free

    Hello, I just migrated from blogger to wordpress and I want to change my url structure and remove year month and .html from it, so can you please provide a proper redirect configuration to do so ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay.

    You can try this regex redirect to remove the year, month, and the .html to your old links and redirect to the post name.

    Source URL: /([0-9]{4})/([0-9]{2})/([^/.]+).html$
    Destination URL: /$3

    It should like this:

    Regex

    I hope that helps.

    Thank you, and looking forward to helping you.

    And how to redirect for amp ?

    Hello,

    Thank you for the follow-up.

    I’m assuming that your AMP pages have the /amp at the end. To redirect those, you can set up a regex redirect using this structure:

    Source URL: (.*)/amp
    Destination URL: /$1

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘How to change my blog url structure ? ( Redirect Code )’ is closed to new replies.