N
N
Nicksemkin2016-09-22 23:07:46
Search Engine Optimization
Nicksemkin, 2016-09-22 23:07:46

Remove the .html extension. How will Yandex react?

The site is handwritten, that's why loading pages of the form page.html
It was necessary to remove the .html extension
. I made it with such a code.

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html


RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ http://vash-master.tv/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html

RewriteCond %{REQUEST_URI} /index
RewriteRule ^(.*)$ http://vash-master.tv/ [R=301,L]

But now Yandex sees duplicates, two pages each - page.html and page.
Ultimately, it is necessary that the pages look like site.ru/page
The 301 redirect comes to mind, but I can’t figure out how to apply it.
Is there any solution?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2016-09-22
@zooks

To remove the extension, you need to transfer it to the CMS, otherwise this action does not make sense.
Yandex will react negatively if redirects are not registered.

A
Alexander Diunov, 2016-09-23
@adiunov

Yandex webmaster and sitemap.xml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question