Карта сайта для Гугла (ДокуВики) | Participants
|
- Statistics
- Participants
- Translate into Russian
- Translation result
- Translated in draft, editing and proof-reading required.
If you do not want to register an account, you can sign in with OpenID.
Google Sitemap (DokuWiki) | ||
====== Google Sitemap ====== | ||
[[DokuWiki]] can automatically create an [[http://www.sitemaps.org/|XML Sitemap]] used by several big search engines like Google, Yahoo, and Microsoft. | «[[dokuwiki|ДокуВики]]» может автоматически создавать [[http://www.sitemaps.org/ru/|карту сайта в формате XML]], используемую такими поисковыми машинами как «Яндекс», «Гугл», «Бинг» и «Яху!». | |
The sitemap creation is enabled with the [[config:sitemap]] option. The sitemap is placed in the cache subdirectory of your DokuWiki installation. It will be accessed by the following type of URL ''%%http://your_domain/dokuwiki/?do=sitemap%%''. Depending on the availability of gzip support in your PHP install it will either be named ''sitemap.xml.gz'' (when gzip is available) or ''sitemap.xml'' (with no gzip support). Nearly all modern PHP installs have gzip support enabled, so ''sitemap.xml.gz'' is your best guess. | Карта сайта создаётся, если влючена опция «[[ru:config:sitemap]]». Файл карты находится во вложенном каталоге «cache» вашей установки «ДокуВики». Он будет доступен по ссылке: ''%%http://your_domain/dokuwiki/?do=sitemap%%''. В зависимости от наличия поддержки gzip в вашем PHP, файл будет именоваться «sitemap.xml.gz» (если gzip доступен) или «sitemap.xml» (если gzip недоступен). Почти во всех современных установках PHP поддержка gzip включена, поэтому файл будет называться скорее всего «sitemap.xml.gz». | Comment was deleted |
When the sitemap is updated, DokuWiki will inform the following search engines automatically through a HTTP "ping": | При обновлении карты сайта «ДокуВики» HTTP-пингом автоматически информирует следующие поисковые системы: | |
* [[http://www.google.com|Google]] | ||
* [[http://www.yahoo.com|Yahoo]] | ||
* [[http://www.live.com|Microsoft Live/MSN]] | * [[http://www.live.com/|Микрософт Лайв/МСН (Microsoft Live/MSN)]] | |
Note: the sitemap will only contain pages that are readable by the public without logging in. | Примечание: карта сайта будет содержать только ссылки на страницы, которые доступны без авторизации на сайте. | |
===== Permission Setup ===== | ||
To be able to create a sitemap, the webserver needs to have write access to the sitemap file in ''/data/cache/''. The easiest way to make sure it has, is to create an empty **''sitemap.xml.gz''** file and change its permissions accordingly((See [[install:permissions]] on tips about permission setting)). | Для того, чтобы создавать карту сайта, веб-сервер должен иметь доступ на запись в файл «sitemap» в каталоге ''/data/cache/''. Создайте пустой файл **''sitemap.xml.gz''** и измените права доступа к нему, чтобы убедиться в наличии права доступа((См. «[[ru:install:permissions|Настройки прав доступа к файлам]]».)). | Comment was deleted |
If your sitemap won't be created you can try to get some debug output from the indexer by calling ''%%http://yourserver/dokuwiki/lib/exe/indexer.php?debug=1%%'' in your browser. | Если карта сайта не создаётся, можно попытаться получить отладочную информацию от [[ru:indexer|индексатора]], набрав ''%%http://yourserver/dokuwiki/lib/exe/indexer.php?debug=1%%'' в адресной строке браузера. | |
To force your sitemap to be re-created, try temporarily setting the [[config:sitemap]] option to a large, negative value. | Чтобы карта сайта была пересоздана, попробуйте временно установить для опции «[[ru:config:sitemap]]» большое отрицательное значение. | — Не уверен в правильности перевода :-( — alexgearbox |
===== Sitemap Validity ===== | ||
Sitemaps are bound to a domain name. If your sitemaps contains URLs of the form ''%%http://domain.org%%'', the sitemap will not be valid when pulled from ''%%http://www.domain.org%%'' and vice versa. To make sure a canonical URL is used you can either configure the [[config:baseurl]] setting or redirect "mismatching" URLs via another [[rewrite|rewrite]] rule in your ''.htaccess'': | Карта сайта связана с именем домена. Если карта сайта создаёт адреса вида ''%%http://domain.org%%'', то она не будет действительна для сайта с адресом вида ''%%http://www.domain.org%%'' и наоборот. Чтобы убедиться, что используются канонические адреса, настройте параметр конфигурации [[ru:config:baseurl]] или перенаправляйте «неправильные» адреса с помощью [[ru:rewrite|правил переадресации]] в файле ''.htaccess'': | |
**Rewrite example (Apache):** | ||
<code apache>RewriteEngine on |
© Андреас Гор и сообщество «ДокуВики». License: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Comment was deleted