Popular Posts

How to create .htaccess file - BotNode

how to create htaccess file, htaccess tutorial, how to create htaccess file in php,how to create .htaccess file



Introduction

.htaccess provide a way to make configuration changes on Apache web server on a pre-directory basis. When a .htaccess file is placed in a directory which is in trun loaded via the Apache web server, then the .htaccess file is detected and executed by the Apache web server. .htaccess file can be used to modify Apache web server configuration, enable or disable functionality or features provided by Apache web server. These features includes redirection of 404 error, password protectio, image link prevention.

When to use .htaccess files:
1) Custom error pages for better SEO
One use of .htaccess file is to redirect users to custom error page depending on specific web server error. By using custom error page you can present them list of articles, sitemap or extra navigation of system.

2) Using a different file as home page
By adding a command in .htaccess file you can load different page as index page. 

Note: 

You should avoid using .htaccess files if you have to access httpd main server config file. Using .htaccess files slows down your Apache web server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.




How to create .htaccess file - BotNode How to create .htaccess file - BotNode Reviewed by Snehal Vasava on May 19, 2018 Rating: 5

No comments:

Breaking

Powered by Blogger.