Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:30:44+00:00 2026-05-26T07:30:44+00:00

on http://www.exampleSite.com/aPage.php , the following image loads correctly <img src=/images/sidenav/analysis-2.gif /> but at http://localhost/exampleSite/aPage.php

  • 0

on http://www.exampleSite.com/aPage.php, the following image loads correctly

<img src="/images/sidenav/analysis-2.gif" />

but at http://localhost/exampleSite/aPage.php, it tries to get localhost/images/… instead of localhost/exampleSite/images/…

My file structure is:

C:\xampp\htdocs\exampleSite\

I have had this problem across multiple projects, and have previously resorted to absolute URLs, but now I am just trying to make some quick updates on a page, and I cannot view it correctly on my localhost.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:30:45+00:00Added an answer on May 26, 2026 at 7:30 am

    If you don’t want to mess up with the src attributes throughout your website, you may consider changing configuration directives.

    You can relocate it by editing the DocumentRoot setting in C:\xampp\apache\conf\httpd.conf.

    It should be currently set as :

    C:/xampp/htdocs
    

    Change it to:

    C:/xampp/htdocs/exampleSite
    

    and your relative link as <img src="/images/sidenav/analysis-2.gif" /> should be working fine.

    NOTE:

    • Don’t forget to restart your XAMPP Server after making changes.
    • After these changes, your leading / will always direct to the exampleSite folder. Should you decide to change the root later, repeat the process for the root folder of your choice.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.izrada-weba.com/orso On mouseover on link NENATKRIVENA TERASA... submenu and image fade in together. Submenu
http://www.roguevalleyroses.com/rose_list.php?search_id=&class=&height=&growth=&color=&bloom_size=&bloom_type=&shade=&fragrance=&disease=&rebloom=&thorns=&zone=&hybridizer=Ashdown%20Roses&date_range=&text=&view=&show=&page=4 This is the page. The code that queries the results is here: http://pastebin.com/d51bfa53f
This is driving me nuts. http://www.cssdrive.com/index.php/examples/exampleitem/focus_pseudo_class This is an example of using the hover
http://www.stellarwebsolutions.com/en/articles.php I just got the .pem to work with paypal but I cannot find
http://www.codeplex.com/IIRF/Thread/List.aspx My webhost installed IIRF for me and I am convinced that they did
http://www.validome.org/xml/validate/?lang=en&viewSourceCode=1&url=http://45143.com/finance-feed/abc.xml&onlyWellFormed=1 check the url above for validator results. Line 171 in the XSD is
http://www.programmersheaven.com/2/FAQ-ADONET Disconnected architecture is not well suited for desktop clients with multiple updates but
http://www.geocities.com/CapeCanaveral/Hall/2027/alfabeto.txt part of it: procedure f /martina go 20 rt 90 go 10 lt
http://www.ddrewdesign.com/portfolio/ I've run that on three different VMs and my brother's regular (and very
http://www.ericmmartin.com/projects/simplemodal/ There's two examples near the bottom of the page that show how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.