• jag.mmb

    (@jagmmb)


    I have been spending a couple of hours fixing this problem but I can’t seem to find my way.

    I have a site that was hosted from a different hosting provider before and I have just transferred it to another provider.

    Basically I have just copied all the files, setup the database, and checked the htaccess file.

    The homepage seems to be loading fine (although the image thumbnails of the post display broken image) and when I click on the links, it goes to a Page not found error.

    I tried searching for a solution like checking the wp-config file, the htaccess file but it’s still not solving my problem. Mod_rewrite is also enabled.

    I am quite aware that this is an issue on the permalink but I can’t figure out the root cause.

    My wordpress site is installed in a sub-directory of the domain name like:
    http://mysite.com/my-wp-site
    This is the same link from the old hosting to the new one.

    A friend suggested me to edit the permalinks settings by setting it to default then save it then set it to the custom again and that should solve it. The htaccess file is also rewritable. Still it it’s not fixing the problem :/

    I don’t know if I have missed something or what. I would really appreciate your suggestions.

    P.S.
    The rest of the page of the site are viewable if I select the default permalink. But on the most previous setting, it’s the custom that was enabled.

Viewing 2 replies - 1 through 2 (of 2 total)
  • rafilathif

    (@rafilathif)

    Same problem here my site since three month i updated posts and pages are not found in my site please help me to get recover my posts back

    @jag.mmb!

    I am quite aware that this is an issue on the permalink but I can’t figure out the root cause.

    Partially your are right. It is not exactly permalink issue. Since you are able to login and see your home page but getting 404-pagenotfound errors. It means the absolute paths for each post or page or link is not same as in the previous host.

    Assume you have absolute path to sample.png image in the previous host as:
    /old-home/old-cpanel-username/public_html/wp-root-directory/custom-sub-directory/wp-content/uploads/sample.png

    Now you might have similar but little bit different as follows:
    /new-home/new-cpanel-username/public_html/wp-root-directory/custom-sub-directory/wp-content/uploads/sample.png

    If you observe the above two absolute paths for the same sample.png image the very first two directories are different. The first directory name in general “home”, but not always even if change your hosting package within the same hosting provider. Next cpanel name,in general, always get change to new one.

    I would suggest change the absolute paths and use of Velvet Blues plugin for similar task.
    Before doing so, better to have backups for both wp files, and DB too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All pages (except homepage) and images cannot be found after migration’ is closed to new replies.