Can 403 Redirect to 404?

Hazirak

New Member
Messages
197
Reaction score
0
Points
0
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).
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
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
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
You could try adding the following code to your .htaccess document :-
ErrorDocument 403 "link to your 404 document.html"

Hope that works :).
 
Top