M
M
Maxim Tyulpakov2017-04-03 10:03:13
Search Engine Optimization
Maxim Tyulpakov, 2017-04-03 10:03:13

What is the best way to overcome the problem of duplicate pages?

The site was written by himself, without any engines. PHP Includers, no more...
22b611afa7294c2e8da8f7697161eadb.PNGHow to overcome the problem, and is it a problem?
fontalife.ru/sitemap.xml
fontalife.ru/robots.txt

ErrorDocument 404 /404/

# настройка главного зеркала
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.fontalife.ru$ [NC]
RewriteRule ^(.*)$ http://fontalife.ru/$1 [R=301,L]

<ifModule mod_headers.c>
    #кэшировать html и htm файлы на один день
    <FilesMatch "\.(html|htm)$">
        Header set Cache-Control "max-age=43200"
    </FilesMatch>
    #кэшировать css, javascript и текстовые файлы на одну неделю
    <FilesMatch "\.(js|css|txt)$">
        Header set Cache-Control "max-age=604800"
    </FilesMatch>
    #кэшировать флэш и изображения на месяц
    <FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$">
        Header set Cache-Control "max-age=2592000"
    </FilesMatch>
    #отключить кэширование
    <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
        Header unset Cache-Control
    </FilesMatch>
</IfModule>
<ifModule mod_expires.c>
    ExpiresActive On
    #по умолчанию кеш в 5 секунд
    ExpiresDefault "access plus 5 seconds"
    #кэшировать флэш и изображения на месяц
    ExpiresByType image/x-icon "access plus 2592000 seconds"
    ExpiresByType image/jpeg "access plus 2592000 seconds"
    ExpiresByType image/png "access plus 2592000 seconds"
    ExpiresByType image/gif "access plus 2592000 seconds"
    ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
    #кэшировать css, javascript и текстовые файлы на одну неделю
    ExpiresByType text/css "access plus 604800 seconds"
    ExpiresByType text/javascript "access plus 604800 seconds"
    ExpiresByType application/javascript "access plus 604800 seconds"
    ExpiresByType application/x-javascript "access plus 604800 seconds"
    #кэшировать html и htm файлы на один день
    ExpiresByType text/html "access plus 43200 seconds"
    #кэшировать xml файлы на десять минут
    ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasya Petrov, 2017-04-03
@MaXComp

More correctly - not to produce duplicates at all.
2nd by correctness - 301 redirects.
..
last but not least (if nothing else is left):
canonical
bans in robots.
What is better to use: rel="canonical" or one single url?

S
Sergey Goryachev, 2017-04-03
@webirus

https://yandex.ru/search/?lr=11&msid=1491203043.69...

A
Andrey Nikolaev, 2017-04-03
@gromdron

Is n't that what canonical links are for?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question