Jump to content

help on cpanel (403)


oceans

Recommended Posts

Dear people,

 

I am using cpanel, I recently noted that there is a function in the list of controls, if we have a 403 error, we can write a script to do something, but it is empty to start with, thus I do not what is it to write (java, html, php,…)

 

Can any one suggest what would it be, I just want to point to my home page if any 403 happens.

 

Thanks.

 

Link to comment
https://forums.phpfreaks.com/topic/72247-help-on-cpanel-403/
Share on other sites

There are a few general rules in creating Custom Error pages via the forms in the Cpanel.

 

1) you cannot have forms in your Custom Error Pages. Forms only rewrite the buttons used to make the Cpanel Form.

 

2) If you want an easy way or writing the custom error pages, just write them in Notepad and save them as the following: 400.shtml, 401.shtml, 403.shtml, 404.shtml, and 500.shtml

 

Their .htaccess is set up by default to go to 4xx.shtml error pages in that directory. You only have to change the .htaccess file if you want different behavior.
Link to comment
https://forums.phpfreaks.com/topic/72247-help-on-cpanel-403/#findComment-364371
Share on other sites

 

"shtml" isn't really anything much. It's a file extension (*.shtml) that is commonly used by servers to recognise an html file which includes something called Server Side Includes (SSI).

 

Server Side Includes basically let you dump the contents of a file straight into an html document, if your server allows them. (They do a whole heap of other things to - like add the time at the servers location to the page and stuff)

 

you must modify in the htaccess file in order to point to certain page if the error occurs, i think you didn't see this

Their .htaccess is set up by default to go to 4xx.shtml error pages in that directory. You only have to change the .htaccess file if you want different behavior.

Link to comment
https://forums.phpfreaks.com/topic/72247-help-on-cpanel-403/#findComment-365214
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.