Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
SE Friendly URLs - Custom Error Pages
Results 1 to 9 of 9

Thread: SE Friendly URLs - Custom Error Pages

  1. #1
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755

    SE Friendly URLs - Custom Error Pages

    Hi all,

    I've used the custom error method for SE friendly URLs once before, but I can't remember how it worked at all.

    At the moment I've got this in my .htaccess file:

    HTML Code:
    ErrorDocument 404 http://www.site.com/directory/processor.php 
    I try to go to http://www.site.com/directory/2/2/ for example, and I am automatically directed to processor.php meaning the script won't work. My understanding was (and this worked last time I tried), the processor.php file would somehow be embedded in the 404 file, so you could count the elements in the URL etc.

    Anyone know what's wrong?

    Thanks,
    Mike
    Don't you just love free internet games ?

  2. #2
    Registered
    Join Date
    Mar 2006
    Posts
    330
    I don't know, but I will send a link to this thread to Nintendo and maybe he can help out Mike!

  3. #3
    Sean
    Join Date
    Nov 2005
    Posts
    139
    have you done all the other stuff on this page?

    http://www.websitepublisher.net/arti...ngine_friendly

    sounds like you might need to add the HTTP header.

  4. #4
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    is "directory" an actual directory or not?

    if it is, get rid of it and put processor.php in your root.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  5. #5
    King of da Wackos Nintendo's Avatar
    Join Date
    Oct 2004
    Location
    Planet Zeekois
    Posts
    166
    Try a static html page with oiut the complete URL, like

    ErrorDocument 404 /whatever.html

    though a php should also work.

  6. #6
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    Brilliant, put the things in the root and didn't put the whole URL and it worked. Cheers guys
    Don't you just love free internet games ?

  7. #7
    Registered
    Join Date
    Mar 2006
    Posts
    330

    Talking

    Hey Mike, did you say Nintendo was Brilliant ???

    All this time I have thought of him as a crazy WACKO!

  8. #8
    King of da Wackos Nintendo's Avatar
    Join Date
    Oct 2004
    Location
    Planet Zeekois
    Posts
    166
    Bah!!! I am da King of da Wackos, not even close to brilliant!!! grrr!!! heck, even SitePoint voted me as there official King of da Wackos for the year!!!

  9. #9

Similar Threads

  1. SE Friendly URLS...This should work shouldn't it?
    By Mike in forum Website Programming & Databases
    Replies: 1
    Last Post: 03-25-2004, 09:28 AM
  2. Search Engine friendly urls ?
    By Dan in forum Search Engine Optimization
    Replies: 6
    Last Post: 02-11-2004, 06:26 PM
  3. Multiple SE Friendly URLS
    By incka in forum Website Programming & Databases
    Replies: 6
    Last Post: 02-07-2004, 08:44 AM
  4. IIS 4.0 + Search Engine Friendly URL's
    By Stevens in forum Website Programming & Databases
    Replies: 14
    Last Post: 02-03-2004, 08:51 PM
  5. Search Engine Friendly URLS
    By dolphin in forum Search Engine Optimization
    Replies: 8
    Last Post: 12-01-2003, 09:01 PM

Bookmarks

Posting Permissions

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