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

  • Home
  • SEARCH
  • 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 9269901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:14:16+00:00 2026-06-18T15:14:16+00:00

BASIC SETUP: WAMP server running locally on my PC (running apache 2.2.22 on localhost)

  • 0

BASIC SETUP:
WAMP server running locally on my PC (running apache 2.2.22 on localhost)
Site is placed under /libelle directory
.htaccess placed in that directory and it contains only one line

ErrorDocument 404 /libelle/pages/404.html

404.html file is placed in /libelle/pages directory

Here is what’s going on:

404 page has the same layout and menu as the original site with same navigation menu pointing to the site pages:

../index.html

what-we-do.html

portfolio.html

contact.html

Last three files are located in the same directory as 404 page, hence no path to them.

Here is what I do:

a)I go the following URL – /libelle/pages/what-we-do.html and get to the page as I should (forum doesn’t allow links with localhost, so I replaced it with webroot)

b)I change the url to /libelle/pages/what-we-SOMEWORDSdo.html and get to the 404 page as I should. No problem here.

Everything looks fine.
Strange things start happening if instead of changing the html file name as in the link above I change the directory in URL.
So, here it goes…

a)I go the following URL – /libelle/pages/what-we-do.html and get to the page as I should

b) I change the url (this time in directory name) to /libeSOMEWORDSlle/pages/what-we-do.html and get to the 404 page as I should.

c) here comes the strange thing….
Now when I place cursor in navigation menu on my 404 page that suppose to take back to my normal site links it shows: /libeSOMEWORDSlle/pages/what-we-do.html

In other words – it shows the changed directory names in the links.
I’m not sure how to fix this and overall puzzled by the behaviour.
Any ideas as to why this is happening and how to fix it would be much appreciated.

  • 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-06-18T15:14:18+00:00Added an answer on June 18, 2026 at 3:14 pm

    The links in your HTML are probably written to use relative, instead of absolute paths. You should use absolute paths like /libelle/pages/what-we-do.html instead of relative paths like ../what-we-do.html. When using relative paths, the browser constructs the link relative to the current path. So if you type in a funky directory name, the path will be built using that directory name, even if it’s incorrect. Absolute paths will always be correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CI application that uses .htaccess for URL routing. My basic setup
On my site I have a very basic setup: an 'a href' tag that
My basic setup is a whole heap of Javascript under an anonymous self-invoking function:
The basic setup is classic - you're creating a Windows Forms application that connects
I have setup the basic LAMP server on Ubuntu 11.10 and had a few
I have a basic Socket.io server setup like this: var server = express.createServer().listen(port); this.io
Basic setup is a series of divs that have additional info that slides down
Here's my basic setup... I have a website that will be used for employees
The basic setup is that I have a web application that calls SQL Reporting
Here's the basic setup. I'm trying to create a simple middleware component that would

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.