Answer the question
In order to leave comments, you need to log in
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...
How 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
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?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question