whizzylogic Posted May 5, 2003 Share Posted May 5, 2003 Hi, The cpanel way of creating custom error pages is very unfriendly & restrictive. I've created some custom error pages with images for my website without using the cpanel way. How & where can I upload them to in my public_html folder, together with the images? How should the html pages be named for this purpose? TIA Quote Link to comment Share on other sites More sharing options...
mouse25 Posted May 5, 2003 Share Posted May 5, 2003 I created a new folder within my public_html and simply named it 404. I put all my error docs and images in there. Next add the following line to your .htaccess file ErrorDocument 404 http://yoursite.com/404/my404page.html That should do the trick! ty Quote Link to comment Share on other sites More sharing options...
whizzylogic Posted May 5, 2003 Author Share Posted May 5, 2003 Thanks for your response. But where's the .htaccess file that you are talking abt.? I can't find it anywhere in public_html folder. Quote Link to comment Share on other sites More sharing options...
TCH-Andy Posted May 5, 2003 Share Posted May 5, 2003 Whizzylogic, I can't answer your question directly, but I got round the problem by creating the file in cpanel, which saved it by default in my public_html folder - I then just edited the file externally (dreamweaver in my case) and everything worked happily Andy Quote Link to comment Share on other sites More sharing options...
mouse25 Posted May 5, 2003 Share Posted May 5, 2003 Andy's suggestion is good too. I don't recall if the .htaccess file has to be created or not though I don't think so. I should also mention that the .htaccess file is not visible using FTP clients but you should find it in your File Manager. - ty Quote Link to comment Share on other sites More sharing options...
whizzylogic Posted May 5, 2003 Author Share Posted May 5, 2003 Which is a better technique? .htaccess or the cpanel method with re-edit? Alas, I manage to create a .htaccess file & got the custom errror pages up & running. For the .htaccess technique, I learn that the following must be added to avoid exposing the .htaccess file. <Files .htaccess> order allow,deny deny from all </Files> 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.