.htaccess - Redirecting links without a .html extension to link with .html extension -


After changing my site structure, I need help redirecting the link. How can I redirect all links that do not have .html extensions on the same link, but with the .html extension? The only link I do not have to redirect / admin is

  Example: google.com/hey - & gt; Google.com/hey.html google.com/hey.html - & gt; Google.com/admin Nothing - & gt;  

Try it man The error was in rewriting.
  Rewrite code% {REQUEST_FILENAME} on rewriting !. Html $ RewriteRule (.) $ 1.html [L]    

Comments