+ Reply to Thread
Results 1 to 3 of 3

Thread: Can 403 Redirect to 404?

  1. #1
    Hazirak's Avatar
    Hazirak is offline x10 Sophmore Hazirak is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Georgia
    Posts
    197

    Can 403 Redirect to 404?

    Is it possible (not to mention allowed) to cause a '403 forbidden' error to redirect to the default '404 not found' page on a free account? I'm playing around with something and there are a couple folders that not only should users not have access to, but preferably not even know exist in the first place (receiving a 403 error implies that the resource exists, you just aren't allowed to view it).

  2. #2
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Can 403 Redirect to 404?

    I am pretty sure it is possible, but free hosting doesn't allow custom error pages...which in your case what you want to do is custom.

    you can probably just use a php include statement to include the 404 page

  3. #3
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: Can 403 Redirect to 404?

    You could try adding the following code to your .htaccess document :-
    ErrorDocument 403 "link to your 404 document.html"

    Hope that works .

+ Reply to Thread

Similar Threads

  1. Replies: 5
    Last Post: 11-18-2007, 03:21 AM
  2. Redirect
    By BlueIce in forum Free Hosting
    Replies: 3
    Last Post: 10-21-2007, 08:06 AM
  3. Cpanel Redirect problem
    By BigEmmaFanz in forum Free Hosting
    Replies: 5
    Last Post: 12-10-2005, 04:51 PM
  4. How Do You Redirect?
    By TarinC in forum Off Topic
    Replies: 2
    Last Post: 10-02-2005, 11:01 AM
  5. Redirect?
    By DonkeyTvShow in forum Free Hosting
    Replies: 0
    Last Post: 06-27-2005, 10:38 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
x10hosting free hosting for the masses
dedicated servers