Mind you, if you have an index.html page you're trying to forward to a default.asp page in a subfolder, one has to wonder why, and if you're not potentially doing any search engine damage in the process.
I want to use 301 redirect so this will not do any search engine damages, I guess... I am doing this, because I dont like this landing page and I want people to go to the "store" directly without passing by this landing page.
It is easy!You can use a meta varible.It is called 'refresh'.
A Sample:
<head>
<meta http-equiv="refresh" content="5;url=YourURL">
</head>
Please replace YourURL with your own.
I want to use 301 redirect so this will not do any search engine damages, I guess... I am doing this, because I dont like this landing page and I want people to go to the "store" directly without passing by this landing page.
Then why does the landing page even exist? The best thing you can do is to have the "store" in the root directory and have them go there.
No redirects, no server calls, no potential for damage, it's more user friendly, all problems solved, baby goes to sleep.
The only way you can do that is to delete the index page and use a custom 404 page to perform the redirect.
That's the easiest way. If your server supports .net you could add a global.asax file and handle the onrequestbegin event, or use an httphandler. You can write an isapi filter for any version of iis, but that means c++ coding. A 404.asp is the easiest way to go.