• Hello guys im in need of help! i recently wanted to bring up an old website, which i had worked on for a long time. I made a backup of the website and got it showing (kinda) on my localhost: see img. http://imgur.com/23DwffG

    – Why cant my website seem to find the files in the wp_content folder? do i need to redirect something? what have i done wrong…

    – Thank you in advance
    – SITE NOT: when i press any of the link tabs, i get redirected to my old hosting website

Viewing 5 replies - 1 through 5 (of 5 total)
  • When you took the copy from the “old hosting website” and transfered it to your localhost, you did not change the settings for: WP_HOME and WP_SITEURL. Add these lines to your wp-config.php file:

    define('WP_HOME','http://yourdomain.com');
    define('WP_SITEURL','http://yourdomain.com');

    Then you will also have to adjust any links to images etc, so that they are requested from localhost.

    Good ways to fix these problems are to either:
    – Use a plugin like DUPLICATOR to prepare your data and move your website.
    – Configure your localhost website to use “VirtualHost” and then work on your local copy using the same name it uses when hosted, details here:
    http://httpd.apache.org/docs/2.2/vhosts/name-based.html

    Thread Starter Urbahz

    (@urbahz)

    Hello again RossMitchell! 🙂 it worked!…kinda. I can now browse all the tabs and see all my content. Thank you! But i still have one problem. None of my images are shown, thats the only missing thing. i have tried to change the direction path through wp_post in php admin, but no luck. Do you know the problem?

    – site note, when i press the home tab i get redirected back to my old hosting site.

    Presumably you have copies of your images in your WordPress directories on your local computer.
    Have you also added “www.YourWebName” to your hosts file and also set it in your apache VirtualHost block as “ServerAlias http://www.YourWebName” ?

    If this does not help then could you provide:
    contents of hosts file
    contents of apache VirtualHost config block
    The URL that your HOME button directs to
    The URL that is not working for an image

    Thread Starter Urbahz

    (@urbahz)

    Hello again Ross! Thank you for the reply. I’m running this off WAMP and doing it locally, so i cant point you the website. but i’ve provided some pictures.

    http://imgur.com/a/ev0z9#J3VtWme
    – Side note: old website had the name pmhwebdesign.herobo.com

    old website had the name pmhwebdesign.herobo.com

    This web address is still in you database as the address of many of your posts and almost certainly also your images.

    When you do not provide the information I requested you waste both our time.

    Suggest that you read and follow the instructions I gave you earlier here:
    http://httpd.apache.org/docs/2.2/vhosts/name-based.html

    OR you could use the DUPLICATOR plugin to create a new copy of your website from the old hosting.

    I will not be able to answer your questions if you do not follow my instructions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Website cant see files!’ is closed to new replies.