How to Change permalink Redirect /%post_name%.html/ to /%post_name%/ ?

#378456
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    If you wanted to remove the .html from your posts, you can update it on your WordPress dashboard > Settings > Permalinks. WordPress should automatically redirect your old URL structure to the new ones.

    However, if the redirect is not working upon changing the permalinks, you can try to use this regex:

    Source: ([^/.]+).html$
    Type: Regex
    Destination: https://yourdomain.com/$1

    Please update the destination with your actual domain name.

    I hope that helps.

    Thank you.

    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 1 replies (of 1 total)

The ticket ‘How to Change permalink Redirect /%post_name%.html/ to /%post_name%/ ?’ is closed to new replies.