What is .htaccess file?
The .htaccess in short Hypertext Access a configuration file mainly used by apache web server to control the primary directory and subdirectories. It helps to alter the website directory files without any changes in the server configuration. This .htaccess file will be works in hidden mode available in the root directory of the website. In SEO the .htaccess used for url rewriting, domain redirection from non www to www and custom error page.
Key features of .htaccess file
- Activation of SSL
- Custom error pages to display 404
- Mod_Rewrite of url
- Authentication .htpasswd
- 301 Redirection of domain.com to domain.com
- Redirect the file extension for example .php to .html
For online code generation visit: htaccessredirect.net