Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.

DDEV Share Helper for WordPress

tests project is maintained

A DDEV add-on for WordPress that makes ddev share (cloudflared/ngrok tunnels) work out of the box.

What it does

Normally, sharing a local WordPress DDEV site over a tunnel breaks: WordPress generates every URL (assets, links, redirects, REST endpoints) using its configured local site URL, so visitors hitting the tunnel hostname get mixed-content errors, broken links, and redirect loops back to the unreachable local URL.

This add-on installs a single must-use plugin, ddev-share-helper-for-wp.php, that rewrites URLs on the fly for tunneled requests only:

A must-use plugin (or “mu-plugin”) is a plain PHP file placed in wp-content/mu-plugins/. WordPress loads every file in that directory automatically, before normal plugins — there is nothing to activate, and it never shows up as deactivatable in the admin plugin list. That makes it a good fit here: install the add-on and sharing just works. Removing the add-on deletes the file, which fully removes the plugin.

Requirements

Installation

ddev add-on get dustinatx/ddev-share-helper-for-wp
ddev restart

Then share your site as usual:

ddev share

Removal

ddev add-on remove share-helper-for-wp

Issues

If you run into problems, please file an issue.

Maintainer

@dustinatx

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.