Title: mPress Fix URL References
Author: Micah Wood
Published: <strong>08.12.2012</strong>
Last modified: 04.06.2016

---

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

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

![](https://s.w.org/plugins/geopattern-icon/mpress-fix-url-references.svg)

# mPress Fix URL References

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

[Скачать](https://downloads.wordpress.org/plugin/mpress-fix-url-references.1.0.zip)

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

 [Поддержка](https://wordpress.org/support/plugin/mpress-fix-url-references/)

## Описание

The **mPress Fix URL References** plugin allows you to easily fix URL references
in your WordPress database.

#### Why?

When you move your site from one domain to another, there is no built-in process
for updating URL references in the database. For example, if you have internal links
in your post content that point to the full URL of other pages on your site, these
URL references will become invalid when you migrate your site to a new domain. If
you aren’t a developer who knows how to write MySQL queries, replacing potentially
thousands of instances of incorrect URLs is a real pain. No worries. I’m a developer
and I’ve done all the work for you.

#### How?

Using this plugin is simple:

 1. Ensure that you define the [WP_HOME](https://codex.wordpress.org/Editing_wp-config.php#Blog_address_.28URL.29)
    and [WP_SITEURL](https://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29)
    constants in your wp-config.php file. It’s not that hard.
 2. Установите плагин
 3. Activate the plugin
 4. In the WordPress admin, click on ‘Fix URL References’ in the ‘Tools’ menu
 5. Enter the URL that you want to have replaced
 6. Click on ‘Fix References’

#### Возможности:

 * Clean, well written code that won’t bog down your site

## Скриншоты

[⌊Go to 'Tools' -> 'Fix URL References' to get started.⌉⌊Go to 'Tools' -> 'Fix URL
References' to get started.⌉[

Go to ‘Tools’ -> ‘Fix URL References’ to get started.

## Установка

#### Предварительные условия

If you don’t meet the below requirements, I highly recommend you upgrade your WordPress
install or move to a web host that supports a more recent version of PHP.

 * Requires WordPress version 3.2 or greater
 * Requires PHP version 5 or greater ( PHP version 5.2.4 is required to run WordPress
   version 3.2 )

#### The Easy Way

 1. In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
 2. In the search box, type in ‘mPress Fix URL References’ and hit enter. This plugin
    should be the first and likely the only result.
 3. Click on the ‘Install’ link.
 4. Once installed, click the ‘Activate this plugin’ link.

#### The Hard Way

 1. Download the .zip file containing the plugin.
 2. Upload the file into your `/wp-content/plugins/` directory and unzip
 3. Find the plugin in the WordPress admin on the ‘Plugins’ page and click ‘Activate’

#### Usage Instructions

Before you do anything else, this plugin requires that you define the [WP_HOME](https://codex.wordpress.org/Editing_wp-config.php#Blog_address_.28URL.29)
and [WP_SITEURL](https://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29)
constants in your wp-config.php file.

Once the plugin is installed and activated, just click on ‘Fix URL References’ in
the ‘Tools’ menu on the left hand side in the WordPress admin area. Next, simply
enter the old URL you want to have replaced and click ‘Fix References’. Yep… it’s
that easy.

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

By default, this plugin only replaces URLs in specific tables and fields that would
typically have URL references. I understand that this doesn’t meet everyone’s use
cases, so this plugin exposes a simple PHP function for replacing string content
from any given table and field.

Please only use this function if you know what you are doing:

    ```
    mPress_Fix_URL_References::run_replacement_query( $table, $field, $old, $new );
    ```

This plugin replaces content in the ‘post_content’ field in the ‘posts’ table. The
line of code below is from this plugin and is given as an example of how to use 
this function:

    ```
    mPress_Fix_URL_References::run_replacement_query( 
        'posts', 
        'post_content', 
        'http://www.old-domain.com', 
        'http://www.new-domain.com' 
    );
    ```

Notice how the table name doesn’t include the WordPress table prefix. This gets 
added automatically.

## Отзывы

![](https://secure.gravatar.com/avatar/1563d14e94cbf9fe49ddec070aae9a2d8aebb5fc5bc3a5f3a4b30a1af80fc137?
s=60&d=retro&r=g)

### 󠀁[Removed all tables](https://wordpress.org/support/topic/removed-all-tables/)󠁿

 [dclijste](https://profiles.wordpress.org/dclijste/) 03.09.2016

Does not work with 4.5.3, I tried several times, each time restoring the DB back
after losing all CSS and other changes

![](https://secure.gravatar.com/avatar/b07132b8523056f1220817052b0e88bc1de13ed39e8ada6b7e782aadbbfbce64?
s=60&d=retro&r=g)

### 󠀁[Lost a lot of data to this plugin](https://wordpress.org/support/topic/lost-a-lot-of-data-to-this-plugin/)󠁿

 [RickyT23](https://profiles.wordpress.org/rickyt23/) 03.09.2016

Entered my URLs without a slash at the end. Deleted many tables entirely. Lost my
custom CSS styles & my theme settings. Backup first!!

 [ Посмотреть все 5 отзывов ](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/)

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

«mPress Fix URL References» — проект с открытым исходным кодом. В развитие плагина
внесли свой вклад следующие участники:

Участники

 *   [ Micah Wood ](https://profiles.wordpress.org/woodent/)

[Перевести «mPress Fix URL References» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/mpress-fix-url-references)

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

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

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

#### 1.0

 * Updated to release version after testing in WordPress 4.5.2

#### 0.2

 * Removed deprecated screen_icon() function (props Shelob9)

#### 0.1

 * Initial commit

## Мета

 *  Версия **1.0**
 *  Обновление: **10 лет назад**
 *  Активных установок: **80+**
 *  Версия WordPress ** 3.2 или выше **
 *  Совместим вплоть до: **4.5.33**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/mpress-fix-url-references/)
 * Метки:
 * [database](https://ru.wordpress.org/plugins/tags/database/)[migrate](https://ru.wordpress.org/plugins/tags/migrate/)
   [migration](https://ru.wordpress.org/plugins/tags/migration/)[mpress](https://ru.wordpress.org/plugins/tags/mpress/)
   [url](https://ru.wordpress.org/plugins/tags/url/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/mpress-fix-url-references/advanced/)

## Оценки

 3.4 из 5 звёзд.

 *  [  3 5-звездный отзыв     ](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/?filter=2)
 *  [  2 1-звездный отзыв     ](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/?filter=1)

[Ваш отзыв](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/mpress-fix-url-references/reviews/)

## Участники

 *   [ Micah Wood ](https://profiles.wordpress.org/woodent/)

## Поддержка

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

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

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

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

 [ Пожертвовать на развитие плагина ](https://www.paypal.me/wpscholar)