Said It Here

How to move a website from a subdomain to the main domain

Building a new site on a subdomain often leaves behind stubborn redirect loops that persist even after updating configuration and .htaccess files. This traps your main domain pointing back to the subdomain, preventing the new site from going live correctly.

OverviewLatest thread: Sep 2026
People affected2 accounts (1 forum)
Workarounds found4 items recorded
Discussion timelineSep 2026
Freshness statusActive Consensus
Editorial ConsensusSynthesized across r/Wordpress · Sep 2026
Verification standards →

Core Friction Pattern

Analysis of 2 peer accounts across online developer and community forums reveals that “How to move a website from a subdomain to the main domain” repeatedly surfaces due to edge-case mismatches between standard defaults and real-world environments. Standard troubleshooting frequently falls short, compelling practitioners to develop custom workarounds.

Top Peer-Reported Fix
building the new site somewhere else

+3 alternative community-tested workarounds cataloged below.

Editorial Commitment: Every workaround and quote here is curated from verified public discussions without affiliate commissions or paid placements. Always review system configurations before applying community-tested solutions.

What people tried

Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.

Found another way around this?

Share your steps and trade-offs so fellow engineers don't have to reinvent the wheel. No account required.

Active Consensus (Latest: Sep 2026)Indexed across peer discussions from Sep 2026 to Sep 2026
Evaluated against breaking changes & deprecations
  1. 1
    building the new site somewhere else
    Did this help you?
  2. 2
    using a redirect checker tool
    Did this help you?
  3. 3
    checking the database for the home url
    Did this help you?
  4. 4
    defining WP_HOME and WP_SITEURL constants in the wp-config.php file
    Did this help you?
Tried another approach not listed above?+ Share your workaround ↑

In their words

Unedited, grouped by where they were said, most upvoted first within each place, each linked to the thread it came from.

r/Wordpress2 people · September 2026

“if I build a new site on the subdomain, is it easy enough to move it over when I have built it - or should I be building the new site somewhere else?”source ↗

LegalAlienInDenmark · r/WordpressSep 2026· 8 upvotes

“I am really scratching my head on this one. I clones a WP install from a subdomain to a new separate domain. Previously I had a redirect from the domain to the sub domain but after the clone and setting the config and htaccess files mydomain.com is still redirecting to sub.mydomain.com. I clear cached the and checked every existing configuration I could think of but it is still redirecting. What am I missing?”source ↗

auggie_d · r/WordpressSep 2026· 2 upvotes

Where this came up

People with this problem also raised

Related community dilemmas clustered by discussion consensus

6 related topics

How to move client sites off shared hosting without a partner's help

Moving client sites to a VPS gives you full control and backups, but doing it alone means taking on total responsibility for server maintenance and uptime. Without partner buy-in or technical backup, trying to migrate leaves you stuck managing security, updates, and DNS records by yourself.

8 workarounds3 accounts · 2 forums

Moving a virtual domain controller without a USN rollback

Official guides offer conflicting advice on how to move a virtual machine domain controller to new hardware safely. This leaves administrators stuck guessing whether they have to completely demote and rebuild the DC from scratch.

7 workarounds4 accounts · 1 forum

How to move an online community without losing members

Migrating a community to a new platform often leads to a slow transition where members fail to follow or engage with the new space. Treating the move as a structured rebuild with a checklist rather than a simple content copy helps prevent losing the core members who make the community valuable.

6 workarounds3 accounts · 2 forums

Website serving 404s after an overnight host migration

Hosting migrations can break sites by mixing up URLs in the database, throwing 404 errors, and locking administrators out of their dashboards overnight. When support responds with multi-day wait times, admins are left stranded with broken sites they cannot fix on their own.

6 workarounds2 accounts · 2 forums

Migrating an established online store to Shopify Plus

Moving an older e-commerce business to a new platform requires transferring decades of products, SEO, customer history, and custom features, which often exposes missing native functionality. Store owners are forced to pay high recurring fees for basic apps to replace built-in tools they previously relied on, while dealing with disconnected checkout flows that fracture the customer experience.

28 workarounds12 accounts · 5 forums

How to translate website pages and URLs for free

Most free website translators only swap out text dynamically on a single page instead of generating distinct, indexed pages with localized URLs. This limitation forces users to rely on messy workarounds like embed features and custom modules that do not integrate properly with platforms like WordPress.

6 workarounds2 accounts · 2 forums