Results 1 to 5 of 5
  1. #1
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Capture Missing URL on Custom 404 Page
    I have an ErrorDocument listed in my .htaccess file for http 404 file not found errors. Is there any way on my custom 404 error page to capture the URL the user typed in and was unable to get to?

  2. #2
    Full Member
    Join Date
    October 22nd, 2006
    Posts
    200
    change your 404 page to a PHP page and use $_SERVER['HTTP_REFERER']

    Bob

  3. #3
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    My 404 page is a php page and I do capture the HTTP_REFERER variable, but it always lists the URL for the 404 page itself not the URL of the page the user tried to load.

  4. #4
    Full Member
    Join Date
    October 22nd, 2006
    Posts
    200
    Try this old thread it might help

    http://forum.abestweb.com/showthread.php?t=49168

    Bob

  5. #5
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Thanks Donk. That old thread did help.

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Clickbank - Thank You Page Coding to Capture Email Addresses
    By cavery in forum Affiliate Marketing Tracking Software and Networks
    Replies: 2
    Last Post: July 30th, 2014, 07:34 AM
  2. Junk sites linking to your site with wrong URL (404 Errors in GWT)
    By kse in forum Search Engine Optimization
    Replies: 16
    Last Post: April 24th, 2012, 10:33 AM
  3. Moving a blog to Custom URL
    By TeamCasey in forum Blogging, Mobile and Social Media
    Replies: 18
    Last Post: December 30th, 2009, 02:57 PM
  4. Create Custom Link Result is 404
    By John Powell in forum ShareASale - SAS
    Replies: 2
    Last Post: May 1st, 2008, 10:52 PM
  5. 404 page
    By SSanf in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: March 1st, 2003, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •