Knowledgebase: Miva Merchant FAQ
Setting the default home page
Posted by - NA -, Last modified by on 21 February 2007 08:02 PM
Setting the default home page to the Merchant storefront

There are a number of ways of doing this. The first method is by using an index.php file in your default html or httpdocs directory. Create the file called index.php and place the following in it:

header("HTTP/1.1 301 Moved Permanently");
header ( "Location: /Merchant2/merchant.mvc" );

Assuming that your storefront home page is You can adjust the code as necessary to point to the correct page.

A second method is to create a file in your html/ directory called ".htaccess" (Note the leading "."). The contents of the file should be, for sites with MM v4.14 or higher:

DirectoryIndex index.html /Merchant2/merchant.mvc

Assuming that your storefront home page is

Sites with MM v4.13 or lower would use:

DirectoryIndex index.html /Merchant2/

These files will tell the web server to first look for index.html, and if that's not present, then give the storefront instead. If you have trouble creating a file with the leading "." on your home computer, upload it as "htaccess" and use your FTP software to rename the file on the server to ".htaccess". The reason this is less preferable is because any request for a directory with no index will receive your Merchant storefront instead of a file not found error and that can have a negative impact on the server.

If you'd like to set a page other than your main index page to redirect, replace the html in the file with the following, where "somefile" is the page to redirect to:

(313 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako