What is mod_rewrite? Vhhweb uses Apache, the open source HTTP server software, to host your website. Apache can be customized via modules, and the mod_rewrite module is available for you to use yourself. mod_rewrite can redirect one URL to another URL, rewrite requested URLs, limit access to your site and much more. A rewrite rule can be invoked by placing it in your .htaccess file. Below are examples of how you can use these rules to customize your hosting experience.
mod_rewrite Examples
Here are examples of rules that allow you to do the following: Set Default Homepage
#Specify a default home page (index page)
DirectoryIndex home.html
Specify IP Access
Redirect All Website Pages
Prevent Sub-folder Access
Prevent Sub-domain Access
Force Non-www Domain Access
Force www Domain Access
Set Default Home Folder
Redirect Folder Access
Force HTTPS Access
Block Multiple Referrers Traffic
Deny File Type Access
Remove Index
Remove .php
Remove Index and /