WordPress.org

Ready to get started?Download WordPress

Forums

Broken links and 404 errors (4 posts)

  1. kittenbiscuits
    Member
    Posted 2 years ago #

    I just transferred my site from WordPress.com to wordpress.org. I have imported my posts, comments, etc. I see that all links to my posts from the wp.com site are now broken. How can I make sure the old links are forwarded to the self-hosted site?

    I have made sure the domain is pointed to the self-hosted site.

  2. Marventus
    Member
    Posted 2 years ago #

    Hi!
    If your links are hard-coded inside your posts and pages, you need to either:
    1. Manually edit them so that they reflect your new site's URL;
    2. Do a search and replace in your database either through an SQL query directly from phpMyadmin or using a plugin such as Search and Replace.
    You need to look for your old domain: yourblog.wordpress.com and replace all instances of that with yourdomain.com.
    Cheers!

  3. kittenbiscuits
    Member
    Posted 2 years ago #

    Thanks for the help.

    What about broken links coming up in search results? Or from being linked on other sites?

  4. Marventus
    Member
    Posted 2 years ago #

    Search results should be updated once search engines crawl your site again. If you don't want to wait, you can resort to a free search engine submission site (there are several out there).
    As for links coming from other sites, if you know what sites have broken links to your site, you could try to contact them and ask them to update the URLs. You could also try to redirect all the traffic going to your old URL to the new one.

Topic Closed

This topic has been closed to new replies.

About this Topic