Title: /well-known-uris/
Author: mrose17
Published: <strong>03.11.2016</strong>
Last modified: 03.11.2016

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://s.w.org/plugins/geopattern-icon/well-known-uris.svg)

# /well-known-uris/

 Автор: [mrose17](https://profiles.wordpress.org/mrose17/)

[Скачать](https://downloads.wordpress.org/plugin/well-known-uris.zip)

 * [Детали](https://ru.wordpress.org/plugins/well-known-uris/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/well-known-uris/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/well-known-uris/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/well-known-uris/#developers)

 [Поддержка](https://wordpress.org/support/plugin/well-known-uris/)

## Описание

This plugin enables «Well-Known URIs» support for WordPress (RFC 5785: http://tools.
ietf.org/html/rfc5785).

From the RFC:

> It is increasingly common for Web-based protocols to require the
>  discovery of
> policy or other information about a host («site-wide metadata») before making 
> a request. For example, the Robots Exclusion Protocol [http://www.robotstxt.org/](http://www.robotstxt.org/)
> specifies a way for automated processes to obtain permission to access resources;
> likewise, the Platform for Privacy Preferences tells user-agents how to discover
> privacy policy beforehand.
> While there are several ways to access per-resource metadata (e.g.,
>  HTTP headers,
> WebDAV’s PROPFIND [RFC4918]), the perceived overhead (either in terms of client-
> perceived latency and/or deployment difficulties) associated with them often precludes
> their use in these scenarios.
> When this happens, it is common to designate a «well-known location»
>  for such
> data, so that it can be easily located. However, this approach has the drawback
> of risking collisions, both with other such designated «well-known locations» 
> and with pre-existing resources.
> To address this, this memo defines a path prefix in HTTP(S) URIs for
>  these «well-
> known locations», «/.well-known/». Future specifications that need to define a
> resource for such site-wide metadata can register their use to avoid collisions
> and minimise impingement upon sites’ URI space.

You will need ‘manage_options’ capability in order to use the Settings
 page for
this plugin.

## Установка

 1. Upload the `well-known`-folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the _Plugins_ menu in WordPress
 3. If you wish to define one or more Well-Known URIs that return static output,
     go
    to _Settings > Well-Known URIs_ and define them, e.g.
 4.     ```
        Path: /.well-known/
        robots.txt
    
        Content-Type:
        text/plain; charset=utf-8
    
        URI contents:
        User-agent: *
        Allow: /
        ```
    
 5. If you want to configure a Well-Known URI that returns dynamic output,
     first, 
    edit the plugin source to define a function invoked by do_action for the action`"
    well_known_uri_" + $path`. That function will be invoked when `/.well-known/${path}`
    is requested.

## Часто задаваемые вопросы

### How can I define a well-known uri?

Set a callback for an URI (e.g., «/.well-known/robots.txt»),
 identified by `"well_known_uri_"
+ $path` (e.g., `"well_known_uri_robots.txt"`).

    ```
        add_action('well_known_uri_robots.txt', 'robots_txt');
    ```

In the callback, do whatever processing is appropriate, e.g.,

    ```
        function robots_txt($query) {
              header('Content-Type: text/plain; charset=' . get_option('blog_charset'), TRUE);
              echo "User-agent: *";
              echo "Allow: /";

              exit;
            }
    ```

This code defines a URI that returns static output, as shown in Step 3 above.
 (
For static output, you will want to use _Settings > Well-Known URIs_ page to avoid
writing any code.)

### Is there an implementation where I can write off?

Yes, you can find an example plugin, which defines a Well-Known URI,
 here: https://
wordpress.org/extend/plugins/host-meta/

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«/well-known-uris/» — проект с открытым исходным кодом. В развитие плагина внесли
свой вклад следующие участники:

Участники

 *   [ mrose17 ](https://profiles.wordpress.org/mrose17/)
 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)

[Перевести «/well-known-uris/» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/well-known-uris)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/well-known-uris/), проверьте
[SVN репозиторий](https://plugins.svn.wordpress.org/well-known-uris/), или подпишитесь
на [журнал разработки](https://plugins.trac.wordpress.org/log/well-known-uris/) 
по [RSS](https://plugins.trac.wordpress.org/log/well-known-uris/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.0.3

 * Fork from the original — https://wordpress.org/plugins/well-known/ —
    many thanks
   to https://profiles.wordpress.org/pfefferle/ for the excellent plugin!

## Мета

 *  Версия **1.0.3**
 *  Обновление: **10 лет назад**
 *  Активных установок: **50+**
 *  Версия WordPress ** 3.5.1 или выше **
 *  Совместим вплоть до: **4.6.30**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/well-known-uris/)
 * Метки:
 * [discovery](https://ru.wordpress.org/plugins/tags/discovery/)[well-known](https://ru.wordpress.org/plugins/tags/well-known/)
   [well-known-uris](https://ru.wordpress.org/plugins/tags/well-known-uris/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/well-known-uris/advanced/)

## Оценки

Пока что нет ни одного отзыва.

[Ваш отзыв](https://wordpress.org/support/plugin/well-known-uris/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/well-known-uris/reviews/)

## Участники

 *   [ mrose17 ](https://profiles.wordpress.org/mrose17/)
 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/well-known-uris/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](http://www.14101978.de)