Title: *.html redirect
Last modified: August 7, 2024

---

# *.html redirect

 *  Resolved [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/html-redirect/)
 * Hi John, please can I double check if this regex will redirect all page links
   ending with *.html to the non html version? I have a bunch of old backlinks pointing
   to *.html and would like to add a redirect on those so I don’t have to do so 
   individually. Thank you very much for your help.
 * `\/(.*).html`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-redirect%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/html-redirect/#post-17938926)
 * I can’t tell you if the expression will do what you want it to do, but you can
   find more details about them here including some examples:
 * [https://redirection.me/support/redirect-regular-expressions/](https://redirection.me/support/redirect-regular-expressions/)
 * You can use the referenced regex checker, or you can just try it out and see 
   if it works.
 * You don’t need to escape the `/`. You do need to escape the `.`
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/html-redirect/#post-17939250)
 * Thank you John

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

The topic ‘*.html redirect’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)

 * 2 replies
 * 2 participants
 * Last reply from: [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/html-redirect/#post-17939250)
 * Status: resolved