Dragen Posted April 30, 2007 Share Posted April 30, 2007 Hi, okay.. I've got a simple re-direct in my htaccess file for 404 and 403 errors. ErrorDocument 404 http://www.gimppro.co.uk/error/404.php ErrorDocument 403 http://www.gimppro.co.uk/error/403.php Is there a way of making it show the error pages on faulty links etc, but still keep the address in the address bar the same? for example.. If I type in www.mydomain/badlink/ it will re-direct and change the url to www.mydomain/errorpage but I want it to still say the www.mydomain/badlink/ Is this possible? Thanks Quote Link to comment Share on other sites More sharing options...
steviewdr Posted May 2, 2007 Share Posted May 2, 2007 ErrorDocument 404 /path/to/errordoc.html the above does exactly what you asked for me. -steve Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted May 2, 2007 Share Posted May 2, 2007 If you have urls to your error documents then Apache will redirect the user to specified url for the error document. If you have paths then Apache will not redirect, keeping the url as it is. Quote Link to comment Share on other sites More sharing options...
Dragen Posted May 2, 2007 Author Share Posted May 2, 2007 If you have urls to your error documents then Apache will redirect the user to specified url for the error document. If you have paths then Apache will not redirect, keeping the url as it is. ah thanks! just what I needed. Quote Link to comment 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.