S
S
Sergey Pasternak2021-06-20 00:34:01
HTML
Sergey Pasternak, 2021-06-20 00:34:01

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

The question is, will the site lose its position in the search?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2021-06-20
@serjarfan

The loss will be but not big if there is a page redirect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question