Below table you will see the these error codes descriptions.When you built a website that runs with PHP language you may see the.htaccess fle in the file exploer at the CPanel.
That file controls the client access requests for the target files. Normally it will be inside at all folders in your server but the developers place them where they need. Generally the developer place that folder inside the publichtml or www folder which place the website file and folders. Also due to this file started with a dot (.) this file is hidden. So you can not see this file directly when you opened the CPanel File Browser but you can reach this related file via writing it in file browser adress or you can enable to show file via Preferences and Show Hidden Files options. This file rewrites the server directory tree through the web site URL. With the htaccess configuration you can create a custom error pages, rewrite your URLs, and you can add or remove backslashes end of the URL. ![]() You can restrict some directories and files with htaccess file. For example if the user can not find a page the server will return a 404 error or if the user forbidden to see some pages, the user will see the 403 error. It is defaultly named as index.php or index.html. You can change it with below code block. Htaccess 410 Specific Pages Password Data InYou can keep the username and password data in.htpasswd file. You can locate the.htpasswd file at same directory with the.htaccess. You can keep the required information like below. When you enter your password to store it will be hashed before to be stored. When the user try to enter the password protected location, the password will be requested and after entering it will be hased with the same encriyption method. ![]() After it you can add below code block to your.htaccess file and your protection is enabled. With SSI the html parts or scripts which is placed at another pages or PHP functions can be used at another pages. Banish someone from website is called as blacklisting, the allowing just someone to our websites is called as whitelisting. With.htaccess file we can create blacklists and whitelists. This line allows for all IP adress first and then start to deny. This line allows for all domains first and then start to deny. With hotlinking the that website also use our hosting resources including our bandwidth. In many hostings this is enabled defaultly, So we may disable the hotlinking. In here you can use the.htaccess file to handle this problem.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |