I would like to make my static .html page as a part of my wordpress website.
So, I would like to have no .html extension at the end of the url address.

name of my page: info.html

my website: www.webiste.com

URL now looks like this: www.website.com/info.html

And I would like this: www.website.com/info

I know I can make the custom page template, but all the pages that I’d like to implement it in the website are completely different.

I’ve tried with .htaccess:

# URL Rewrite
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /.*.html HTTP/
RewriteRule (.*)info.html$ /$1 [R=301,L] 

But it does not work. I do not want to damage something, and I’d like you to help me.
Thank you!

Read more here: Custom static page url rewrite


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

WordPress related questions and answers: