Answer the question
In order to leave comments, you need to log in
301 redirect in .htaccess after site transfer?
Tell me, please, who knows
how to solve the problem, the site flew on WordPress, and the pages have seo-weight
cannot be restored. Now everything is on bare html, and there each page ends with .php.
We need a redirect from a page like www.site.ru/mmm/ttt
to a page like www.site.ru/ttt.php
Or, as an option, create a page like www on
html
. site.ru/mmm/ttt
Answer the question
In order to leave comments, you need to log in
www.site.ru/mmm/ttt
one-of-a-kind links of the form www.site.ru/mmm/ttt/index.php
(well, or whatever you have by default)
.htaccessRewriteRule ^mmm/(.*)$ $1.php
if the pages have weight, then you need to set them as they are, the redirect does not transfer the entire weight, but only a part. So if it doesn't bother you personally, it's better to keep the urls.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question