404 Redirect HTACCESS Problem

Discussion in 'Programming' started by belgin fish, Feb 6, 2010.

  1. #1
    Hi, Right now I'm trying to do a 404 redirect in my htaccess file.

    There's only one problem I'm running into.

    Normally I would just go like this :

    ErrorDocument 404 /404.php

    But in this case the htaccess file is not in the root directory, and the 404.php file isnt either, its in a subfolder.


    with my other mod rewrite redirects i just left out the "/" before the file name, but it's not working for this.

    Any ideas?
     
    belgin fish, Feb 6, 2010 IP
  2. sizzlefire

    sizzlefire Member

    Messages:
    397
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Is it in a subfolder of the folder that your .htaccess is in? Also can't you just move your 404 page and .htaccess file to the root directory?
     
    sizzlefire, Feb 6, 2010 IP
  3. belgin fish

    belgin fish Well-Known Member

    Messages:
    1,544
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    185
    Digital Goods:
    2
    #3
    I know I could but If I'm planning on selling the script some of my users might not know what to do :p Oh well, thanks.
     
    belgin fish, Feb 6, 2010 IP