What is .htaccess?
.htaccess is a text file which is used to control web server behavior for a website. This is used to indicate who can or cannot access the WebPages from the web directory of the website via internet. The .htaccess file is a configuration file which exists in a web hosting India Delhi directory and indicates that end users can be permitted access to the files contained in that directory.
How to create and upload an .htaccess file?
Since it is a text/ASCII file, you must web hosting India Delhi create or modify it thorough on a basic text editor commands which can be utilized. Upload the .htaccess it using FTP to the directory according to your own choice.
Error Messages of .htaccess?
If the web server can not fulfill a request then it will send an error message: This can be customizing this using .htaccess. The type of error message:
1. Custom Error Messages
For this purpose Errordocument is web hosting India Delhi used which is followed by a # digit error code and when error found it will display.
- ErrorDocument 404 /notfound.html
- This error message will display web page notfound.html in cases where the requested document is not found.
- When a page is remove a page fro the website and end user make a request for the same page by clicking then the following error will be displayed:
- ErrorDocument 404 http://www.webhostinginfo.in/notfound.html
- This type of request redirects to the URL specified by you.
- You can change it and display to display a text message by writing also tells .htaccess to display a text message.
- ErrorDocument 404 "No such document here
- Here, the text 'No such document here' is shown.
2. Some more Error Numbers
Some more three 3 digit codes are listed below.
- 401: Authorization Required
- Somebody’s attempted to access a password protected area but not having correct user and pass info and enter wrong user and password.
- Somebody’s attempted to access a password protected area but not having correct user and pass info and enter wrong user and password.
- 403: Forbidden
- This person is blocked from web hosting India Delhi requesting the document.
- This person is blocked from web hosting India Delhi requesting the document.
- 500: Internal Server Error
- Generally, the CGI script is being used to crash.
