D
D
Donowitz2016-03-08 00:01:05
Search Engine Optimization
Donowitz, 2016-03-08 00:01:05

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

2 answer(s)
A
Alexey S., 2016-03-08
@Winsik

www.site.ru/mmm/tttone-of-a-kind links of the form www.site.ru/mmm/ttt/index.php(well, or whatever you have by default)
.htaccess
RewriteRule ^mmm/(.*)$ $1.php

V
Viktor Taran, 2016-03-09
@shambler81

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 question

Ask a Question

731 491 924 answers to any question