Answer the question
In order to leave comments, you need to log in
How to save the link from the old site?
Hello. There is a small old wordpress site. It was decided to develop a new one, but on pure html, css, js. In this case, the page URLs look like "* .html" , while on the old site the links look like "*" .
On Habré there is a solution to the problem through .htaccess.
RewriteEngine On
RewriteCond %{REQUEST_URI} ! \.html$
RewriteCond %{REQUEST_URI} ! /$
RewriteRule ^(.*)$ $1.html
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question