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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.