PHPackages                             tyxla/wp-hydra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tyxla/wp-hydra

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tyxla/wp-hydra
==============

Allows one WordPress installation to be resolved and browsed at multiple domains.

v1.2(7y ago)5121[5 issues](https://github.com/tyxla/WP-Hydra/issues)GPL-2.0PHP

Since Apr 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tyxla/WP-Hydra)[ Packagist](https://packagist.org/packages/tyxla/wp-hydra)[ Docs](https://github.com/tyxla/WP-Hydra)[ RSS](/packages/tyxla-wp-hydra/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)DependenciesVersions (3)Used By (0)

WP Hydra [![Build Status](https://camo.githubusercontent.com/b86f7dc2277a6f15c8d6e2f6380406fb4604c977b05f6abdc0d118380f1423b2/68747470733a2f2f7472617669732d63692e6f72672f7479786c612f57502d48796472612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tyxla/WP-Hydra) [![codecov](https://camo.githubusercontent.com/a6cdb8d71302987b8e0c538e3f2e0037f4884c238e72f5b1efabdad27d822874/68747470733a2f2f636f6465636f762e696f2f67682f7479786c612f57502d48796472612f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/tyxla/WP-Hydra) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3153070cf7d7374d89a26774844b6b5c81ff2d62a9bae6eb238c10e36ca1de53/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7479786c612f57502d48796472612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tyxla/WP-Hydra/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/15a3c44926097b52e4088a2284d69639489b8e3a11d8e77f1a043c592a4d4003/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7479786c612f57502d48796472612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tyxla/WP-Hydra/?branch=master)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#wp-hydra----)

Allows one WordPress installation to be resolved and browsed at multiple domains.

---

#### Purpose

[](#purpose)

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. WP Hydra can help you with this.

#### Abstract

[](#abstract)

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.

---

#### Installation

[](#installation)

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

[](#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

[](#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' ) );
	}
}

```

---

#### Testing

[](#testing)

The plugin is fully covered by unit tests.

For more information on how to install and run them, refer to the [WP Hydra Unit Tests README](https://github.com/tyxla/WP-Hydra/blob/master/tests/README.md).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1025 days

Total

2

Last Release

2715d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/774c1731d3e408331d6254fe7c5add84e6172385909ed73bd6a6922dc7b81d76?d=identicon)[tyxla](/maintainers/tyxla)

---

Top Contributors

[![tyxla](https://avatars.githubusercontent.com/u/8436925?v=4)](https://github.com/tyxla "tyxla (90 commits)")

---

Tags

wordpressHydrawpmultipledomainsinstallationresolved

### Embed Badge

![Health badge](/badges/tyxla-wp-hydra/health.svg)

```
[![Health](https://phpackages.com/badges/tyxla-wp-hydra/health.svg)](https://phpackages.com/packages/tyxla-wp-hydra)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k456.5k2](/packages/roots-bedrock)[ffraenz/private-composer-installer

A composer install helper for private packages

2321.7M5](/packages/ffraenz-private-composer-installer)[tareq1988/wordpress-settings-api-class

WordPress settings API Abstraction Class

46711.6k4](/packages/tareq1988-wordpress-settings-api-class)[gotoandplay/gravityforms-composer-installer

A composer install helper for Gravity Forms

31402.0k](/packages/gotoandplay-gravityforms-composer-installer)[seravo/seravo-plugin

Enhances WordPress with Seravo.com specific features and integrations

40167.9k2](/packages/seravo-seravo-plugin)[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.7k1](/packages/proteusthemes-wp-customizer-utilities)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
