• I’m duplicating my live site on a localhost. My images which are specified with relative URLs (ie. src=”/wp-content/…” (and I checked are there) are not showing up when visiting my local site. What gives?

Viewing 6 replies - 1 through 6 (of 6 total)
  • All you see in source is src=”/wp-content/…” ??? Is … folder readable?

    Thread Starter snoopers01

    (@snoopers01)

    yes
    and the images I put in with absolute paths (by accident) are showing up

    and the images I put in with absolute paths (by accident) are showing up

    You will need to be extremely clear and provide as much information as possible…you may also want to post here:

    https://www.ads-software.com/support/forum/localhost-installs

    Thread Starter snoopers01

    (@snoopers01)

    My understanding of what’s happening is that images show up if I specify an absolute url (i.e., src=”https://site/wp-content…/image.jpg” where the site can be either “www.sitename.org” or “localhost/wordpress”) but not if I use a relative url (i.e, src=”/wp-content/uploads/…/image.jpg”

    When I view the page source and click on the relative image link I get a 404 Not Found with the following message:
    The requested URL /wp-content/uploads/2013/03/DSC_0107.jpg was not found on this server.
    and the url in the address bar is:
    https://localhost/wp-content/uploads/2013/03/DSC_0107.jpg

    I thought the absolute path was built with the siteurl (which is https://localhost/wordpress ) but maybe not!?!?

    The absolute URL works as it is pulling that image from the remote server…what do you have set as the local installs URL? localhost?

    The folks who reply, at the forum link provided above, do more with localhost installs…this one is more generic

    Thread Starter snoopers01

    (@snoopers01)

    First – thank you for your help!
    Second – now that I understand I’m in the wrong forum area, tell me to “get lost” and I will (by redirecting my questions to the other forum).

    Third (if you’re still reading):

    I have a WAMPserver running on localhost.

    So relative URLs are relative to the server URL, not site URL?
    (How can these same relative paths work on my live site?)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Migrating to new server’ is closed to new replies.