Htaccess redirect
Learn htaccess changing home directory page rewriterule flags , syntax using the sample example below.
Changing Home Page/Directory Page
When somebody types the URL to your site, more than likely, the index.htm or similar page like default.html will load first. The file that gets loaded as your default page is something you can change using the DirectoryIndex setting:
DirectoryIndex file.htm index.php index.htm
With the above setting, users will load file.htm by default when they visit your site. For your cases, replace file.htm with the name of your default page. This will ensure that the page you specified gets loaded when a user types in the URL to your site.
htaccess changing home directory page syntax
|
htaccess changing home directory page code on this is provided for your study purpose, it will guide you to know how to use mod_rewite to create .htaccess files on the apache servers. use it to practice and train your self online
All the tutorials on this site are free, the page code is provifed for you to use it to practice, if you want to help to improve and maintain this work, you can donate to us on.
Htacess tutorial guides withexamples and easy steps to set ip up on your server.
|
Htaccess Generator
Htaccess adding new mime types and set timezone hot to create file hide . force file save prevent hack block and allow referrer changing home directory page cache control no cache and cache public redirect www to non www ip blocking password protect a directory custom error page php 301 redirect modifying the environment variable upload_max_filesize limit stop directory listing prevent directory listing set cookie domain authentication ads file access deny control block all bad robots hotlink protection
|