Previews not working after mapping domain / Blog URL (7 posts)

  1. michaelforeman
    Posted 6 years ago #

    We had a blog up at one domain (say firstdomain.com), but designed a new site from scratch on a subdomain (new.firstdomain.com). When the new site was ready, we:

    1. Re-mapped firstdomain.com to the new.firstdomain.com directory.
    2. Changed the new site's WP Blog URL to firstdomain.com.
    3. Updated all links in posts, pages, plugins and custom files to firstdomain.com.

    From the visitor's perspective everything looks great and runs smoothly. However, we can't view post previews without adding the new subdomain manually to the address. It produces errors that say: No posts exist in this database (for drafts) and You do not have permission to view drafts (for published posts).

    It obviously generates permalinks with firstdomain.com, but previews (and thumbnails) with new.firstdomain.com. Does anyone have any idea how to fix this? Did I put this together like a drunk mechanic?

    Thanks in advance...

  2. Samuel B

    Posted 6 years ago #

    why not just move it to root and save yourself some headaches?

  3. michaelforeman
    Posted 6 years ago #

    That's probably what we should have done. We didn't want too much disruption with the site originally at root...

    So looking at the codex link (thanks much), I should:

    --Change URI's in General Settings
    --Move all core files over to root
    --Update the file upload destination and permalinks
    --Re-map firstdomain to root

    All links already point to firstdomain, so there shouldn't be much to change there. After that, I'm assuming the login will remain the same. Do I have that right?

    Thanks again for your help...

  4. Samuel B

    Posted 6 years ago #

    you got it

  5. michaelforeman
    Posted 6 years ago #

    Perfect. Thanks samboll.

  6. misscon
    Posted 6 years ago #

    I just spent three hours remapping the site. I do NOT want to touch any part of it again. Is this the only way to get the preview drafts function back? Is there any other way?

  7. misscon
    Posted 6 years ago #

    and why does this occur?

Topic Closed

This topic has been closed to new replies.

About this Topic