Set home.html page as homepage in place of index.html

Method 1 :

Put the following code in .htaccess to redirect index.html to home.html

RewriteEngine on
RewriteRule ^home\.html /index\.html

 

Method 2 :

In your root .htaccess file add the following

DirectoryIndex home.html home.htm index.html index.htm

This will first look for and display home.html then home.htm.

 

  • 26 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Flash tutorials to manage control panel

My SQL A guide to creating and modifying MySQL databases in cPanel. Quality: High | Low Change...

Flash tutorials to manage email

Email Accounts Manage the email accounts associated with your domain(s). Quality: High | Low...

Where can I find cPanel tutorials?

Check cPanel docs :http://www.cpanel.net/docs/cpanel/

How do I use .html files to run SSI (Server Side Includes)?

Apache Handlers This is what you would use to specify how to treat file types. By default,...

WordPress SMTP Authentication

SMTP auth support can be added in wordpress through third party plugins. You can follow these...