Jump to content

Custom Error Pages


Recommended Posts

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

Link to comment
Share on other sites

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 :D

 

Andy

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...