Moving a WP-Script or TubePress Site Without Losing Your Rankings
Moving a tube site to new software is rarely about the videos. Titles, thumbnails and embed codes copy over easily. What loses traffic is the addresses: every video page, category page and performer page that search engines and other sites link to. If the old address answers 404 after the move, its ranking is gone. If it answers with a permanent redirect (301) to the same video on the new site, the ranking moves with it.
AdultEmbed 1.0.4 can move a WP-Script or TubePress site in with one command, bin/ae migrate-from, and it handles the addresses for you. This post explains how it does that, what comes over and what doesn't, so you can decide whether it fits your site before you start. The commands are on the self-hosted page.
First: do you need to leave WordPress at all?
If you run WP-Script and want to stay on WordPress, you don't need a migration. AdultEmbed Studio adopts your existing posts where they are ("Move to Studio"), so no address changes. Read moving from WP-Script, KVS or MechBunny to Studio for that path. The rest of this post is for moving off WordPress or off TubePress, to the self-hosted AdultEmbed.
Why old addresses are harder than they look
A WordPress video address isn't stored anywhere. WordPress builds it every time from your settings: the permalink structure, the category base, the post's categories and their parents, the date, sometimes the author. The rules have corners:
- With
/%category%/%postname%/, WordPress uses the category with the lowest ID, not the first one you ticked, and puts every parent category in front:/amateur/couples/video-name/. - Yoast SEO and Rank Math let you pick a "primary category" for that address, but only while the plugin is active. Deactivate it and WordPress quietly goes back to the lowest ID. Copying the setting without checking the plugin gives you wrong redirects.
- Titles in other alphabets (Bengali, Cyrillic, Thai) produce addresses full of encoded characters that must match byte for byte.
- WP-Script's performer pages live in their own taxonomy (actors) with their own base, which has to be read from your site's rewrite rules.
TubePress has its own: when a site has more than one section, the gay and hentai sections live under their own prefix (/gay/video/..., or a word you chose in its settings), while the main section has none.
The AdultEmbed readers follow these rules exactly. Before release, we checked them against the real software: for WP-Script, every computed address was compared with WordPress's own answer across seven permalink structures, with Yoast on and off. For TubePress, every file address was compared with TubePress's own player code. Those comparisons ship as tests with the software.
What comes over
| From WP-Script | From TubePress | |
|---|---|---|
| Player | The stored embed code, or your own file (best of 4K down to 240p, then the main URL) | Every quality it encoded, plus the original when larger; embeds stay embeds |
| Thumbnail | Featured image, else WP-Script's thumb field | The video's thumbnail |
| Numbers | Length, views, date | Length, views, likes, dislikes, date |
| Terms | Categories, tags, actors (as performers) | Categories, tags, pornstars, channels (as studios); hentai gets a Hentai category |
| Drafts | Stay drafts | Stay drafts |
| Redirects | Every published video, category, tag and actor page | Every video, category, tag, pornstar and channel page, section prefixes included |
The old database is only read, never written. You can run the command against a copy, or against the live site while it keeps serving visitors.
What does not come over, on purpose
- Script players. Some sites paste a
<script>snippet instead of an embed or a file. A snippet from another site's player can't run safely on yours, so these are counted assnippet_onlyand listed, not guessed. - Private storage. TubePress videos on a signed-link storage have no public address to point at. They are counted as
signed_storage. - WP-Script's rating. It stores a percentage, not votes, so likes start at zero. TubePress's extra servers for one video don't come over either.
- Some addresses. Plain
?p=123WordPress links and TubePress's translated pages under/<language>/are not redirected. - Comments, members and ad codes. Set the ads up again in Settings; it takes a minute.
Your own video files stay where they are. If TubePress or WordPress served them from your server, keep that file address working after the switch (or move the uploads folder and keep the same address).
The order that keeps traffic
- Back up the old site and its database.
- Install AdultEmbed on the new server or in a new folder.
- Dry run:
migrate-from ... --dry-runcounts what would come over (videos, drafts, script players, redirects) and changes nothing. - Move: run it for real. Open a few old addresses on the new install and check that each lands on the right video.
- Switch the domain to the new install. Run the command once more on the day you switch: a re-run never doubles a video, it only adds what was published since.
- Watch your search console for a couple of weeks. Redirected pages should hand over within days; if a group of old addresses shows up as 404, tell us which ones.
Other scripts
KVS, MechBunny and most other tube scripts can export their videos as a CSV file. Studio, our WordPress plugin, imports those and matches the columns for you; a re-run updates rather than doubling. A CSV doesn't contain the old site's addresses, so set redirects for your most important pages by hand. If you run another script and want a direct move like the two above, tell us which one.
Frequently asked questions
Will my Google rankings survive the move?
Pages that answer with a 301 to the same content usually keep their rankings, with a short wobble while search engines recrawl. Pages that turn into 404s lose them. That is why every old video and term address gets its own redirect.
Can I run the migration more than once?
Yes. A video that was already brought over is never doubled or overwritten; the run only adds new videos and fills missing redirects.
Does it change my old site?
No. It only reads the old database. The old site keeps working until you switch the domain.
What about videos whose source tube deleted them?
They come over like the rest, and the dead-video check then finds and unpublishes them. If your old site has many tube embeds, check how many are still alive before you move.
Build on a free, open adult video API — your key is ready in seconds.
Get a free API key →