Title: WP Hydra
Author: Marin Atanasov
Published: <strong>2014 年 12 月 17 日</strong>
Last modified: 2019 年 1 月 22 日

---

搜尋外掛

![](https://ps.w.org/wp-hydra/assets/banner-772x250.png?rev=1218585)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/wp-hydra/assets/icon-256x256.png?rev=1218585)

# WP Hydra

 由 [Marin Atanasov](https://profiles.wordpress.org/tyxla/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-hydra.1.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-hydra/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-hydra/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-hydra/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-hydra/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-hydra/)

## 外掛說明

WP Hydra has a quite straightforward purpose. Say you have a WordPress site, hosted
on example.com. You’ve also purchased example.net and example.org, and you want 
them to also use the same website (the same installation), but to persist with that
particular domain to have a consistent user experience. In other terms, you want
your WordPress installation to be resolved and browsed at multiple domains. WP Hydra
can help you with this.

Pointing multiple URLs to the same website is a good way to direct traffic to your
site from several different domain names. You can accomplish this in two ways: either
redirect one of the URLs to your primary domain, or park the domains, which point
these domains towards your primary domain.

A redirect occurs when typing a web address in the address bar sends a visitor to
another website (or URL), different from the one typed in. If this is your preferred
case, then WP Hydra will not be of any need to you.

Parking a domain does the same thing as a redirect, except that the website name
shown on the address bar does not change. You can park several domains to the same
page. They have to be registered with a valid domain registrar before you can park
them. Also, you’ll need to make sure the nameservers are the same as your primary
domain (the domain that you are pointing towards).

Once your multiple domains point to the same website, you have to activate the plugin.
No additional configuration or setup is required. This will make sure that the css,
js, images and links that are leading to the original domain are now leading to 
the domain that you’re currently viewing. This will assure that the users remain
on the site that they’ve originally visited, providing consistent experience.

### Configuration

You only need to make sure that your multiple domains point to the same hosting,
and to the same physical location on your hosting account.

Once this is done, simply install and activate the plugin – no additional configuration
is needed.

### Further customization – filters

If you have some custom content and you want the URLs within it to support multiple
domains, you can use the `wp_hydra_content` filter, like this:

    ```
    // we assume that you have some content in $content
    $content = apply_filters( 'wp_hydra_content', $content );
    ```

If you have some custom URLs somewhere and you want them multiple domains, you can
use the `wp_hydra_domain` filter, like this:

    ```
    // we assume that you have some content in $content
    $url = apply_filters('wp_hydra_domain', $url);
    ```

### Further customization for developers

Since the `$wp_hydra` object is global, you can easily unhook any of the default
functionality by simply calling `remove_action()` or `remove_filter` on it. The 
following example will remove the WP Hydra behavior of the content, but only for`
the_content()` calls on the archive page:

    ```
    add_action( 'wp_loaded', 'some_example_here' );
    function some_example_here() {
        global $wp_hydra;
        if( is_archive() ) {
            remove_filter( 'the_content', array( $wp_hydra, 'setup_content' ) );
        }
    }
    ```

## 安裝方式

 1. Install WP Hydra either via the WordPress.org plugin directory, or by uploading
    the files to your server.
 2. Activate the plugin.
 3. That’s it. You’re ready to go!

## 使用者評論

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

### 󠀁[The (one and only?) domain parking wp plugin](https://wordpress.org/support/topic/the-one-and-only-domain-parking-wp-plugin/)󠁿

 [Prixer](https://profiles.wordpress.org/prixer/) 2020 年 10 月 14 日

Works great if you want to park domains with content of main domain (While keeping
URL of alias/parked domain) Combined with domain pointers of Directadmin. And probably
with PARKED/alias domain in cPANEL. Thank you

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

### 󠀁[Works as advertised](https://wordpress.org/support/topic/works-as-advertised-483/)󠁿

 [Peter Petrov](https://profiles.wordpress.org/ppetrov2c/) 2017 年 12 月 8 日

I needed a way to make a website accessible from two different domains. After installing
the plugin, everything worked out of the box. Great work, thanks 🙂

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

### 󠀁[working great](https://wordpress.org/support/topic/working-great-146/)󠁿

 [INOAH MEDIA](https://profiles.wordpress.org/inoahmedia/) 2017 年 9 月 18 日

I’ve been using this plugin for more than a year now and I had no problems, no errors
or compatibility issues. I have connected more than three domains to the same website.
The fonts are loaded correctly as well.

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

### 󠀁[Great plugin and outstanding support](https://wordpress.org/support/topic/great-plugin-and-outstanding-support-8/)󠁿

 [schnap](https://profiles.wordpress.org/schnap/) 2016 年 9 月 3 日

I have never faced such great support before, especially with a freeware plugin.
Author spent some hours on helping me and patiently explaining how to resolve my
issues. That’s something you don’t see every day.

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

### 󠀁[Thanks!](https://wordpress.org/support/topic/thanks-926/)󠁿

 [franktodoque](https://profiles.wordpress.org/franktodoque/) 2016 年 9 月 3 日

works great, very easy.

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

### 󠀁[It does the job very well.](https://wordpress.org/support/topic/it-does-the-job-very-well/)󠁿

 [billy.zg](https://profiles.wordpress.org/billyzg/) 2016 年 9 月 3 日

No more worry about moving dev site to production.

 [ 閱讀全部 10 則使用者評論 ](https://wordpress.org/support/plugin/wp-hydra/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈WP Hydra〉的開發相關工作。

參與者

 *   [ Marin Atanasov ](https://profiles.wordpress.org/tyxla/)

[將〈WP Hydra〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-hydra)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-hydra/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/wp-hydra/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-hydra/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-hydra/)。

## 變更記錄

#### 1.2

 * Tested with WordPress 5.0 and 5.1.
 * Improved Travis CI config.
 * Improved Scrutinizer CI config.
 * Made plugin fully compatible with WordPress Coding Standards.
 * Fixed tests framework.
 * Improved tests.
 * Implemented Codecov.

#### 1.1

 * Tested with WordPress 4.5.
 * Implemented Scrutinizer CI
 * Made plugin compatible with WordPress Coding Standards
 * Added composer.json
 * Various code improvements
 * Implemented a unit test suite and a complete set of tests
 * Implemented Travis CI

#### 1.0.4

 * Tested with WordPress 4.4.

#### 1.0.3

 * Tested with WordPress 4.3.

#### 1.0.2

 * Fixing IIS compatibility issues.

#### 1.0.1

 * Support both http and https together.

#### 1.0

 * Initial version.

## 中繼資料

 *  版本 **1.2**
 *  最後更新 **7 年前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.1.22**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-hydra/)
 * 標籤
 * [domains](https://tw.wordpress.org/plugins/tags/domains/)[installation](https://tw.wordpress.org/plugins/tags/installation/)
   [multiple](https://tw.wordpress.org/plugins/tags/multiple/)[wp](https://tw.wordpress.org/plugins/tags/wp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-hydra/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  10 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wp-hydra/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wp-hydra/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wp-hydra/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wp-hydra/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wp-hydra/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-hydra/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-hydra/reviews/)

## 參與者

 *   [ Marin Atanasov ](https://profiles.wordpress.org/tyxla/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-hydra/)