fubowl Posted September 14, 2007 Share Posted September 14, 2007 Hi, I'm using the following code to do a 404 redirect.. ErrorDocument 404 index.php BUT when I go to execute a nonexistent file, the browser simply outputs "index.php" --- that's it. If I change the code to redirect to an external website like yahoo, that works just fine -- ErrorDocument 404 http://yahoo.com But why isn't my own page being executed? Thanks. Link to comment https://forums.phpfreaks.com/topic/69308-solved-problem-with-htaccess-404-redirect/ Share on other sites More sharing options...
fubowl Posted September 14, 2007 Author Share Posted September 14, 2007 It was the obvious. Absolute/relative path necessary. I'ma tard. Thanks anywho. ErrorDocument 404 /bla/index.php Link to comment https://forums.phpfreaks.com/topic/69308-solved-problem-with-htaccess-404-redirect/#findComment-348268 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.