Getting Apache Log to see anchor links #link as it does ?link

Posted on 2006-05-21
Last Modified: 2010-03-04
We would like to somehow setup Apache log so that it records the fully address in the address bar, so we can tell when users are using our anchor links (which use #link-location).

The IT department has told us that this is impossible, but I like to believe its possible as it does add to the address bar and many cases on our site it also changes the page as we anchor link into pages from other pages.

So page A would have a link to page B with like and now we want Apache to be able to see that the users landed on and and know that its different then the user that went straight to

IT department has said we can use ?and-some-value, but we don't like this option as we want to use the already implemented anchor links on the site as we have millions of pages and links and updating to a new system isn't possible, better to invest in updating Apache to work with the current structure.

Hope you can help our team out, big thanks to Experts like you!
Question by:ApacheHelp
    1 Comment
    LVL 10

    Accepted Solution

    Unfortunately your IT department is correct.

    The part of the URL after '#' is called the fragment.  Browsers don't even send the fragment to the server.  The browser strips the fragment off before sending the request, and when the server returns the page the browser uses the fragment to position the page in the window.  And when the fragment links to an anchor on the same page, no request is even sent to the server at all.

    Apache can not log this information because it never receives this information.  To force the fragment to be sent, you would have to replace the browsers of all your site visitors--in most cases this will not be practical.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now