writing htaccess files
Note: .htaccess file will be in hidden format, please change your folder and file settings to view this file. How to Create a .htaccess File? Open any text editor application and file save as with .htaccess name and enable mod_rewrite extension in php.ini file in Apache Web Server configurations. Default directory Listing Disable directory Listing If you want to disable folder files listing, include following code. # Disable Directory Browsing Options All -Indexes Error Pages Here error page is redirecting to error.html . errorDocument 400 http://www.youwebsite.com/error.html errorDocument 401 http://www.youwebsite.com/error.html errorDocument 404 http://www.youwebsite.com/error.html errorDocument 500 http://www.youwebsite.com/error.html RewriteEngine On it is turn on Rewrite Rules in Apache Server. if you want to turn off, just change the value to off . RewriteEngine on Domain Redirection .htacces code for redirecting yourwebsite.com to ...