Changing default html page to something besides index.htm?

Transition

Banned
Sep 8, 2001
2,615
0
0
Hello everyone -

I was wondering if anyone knows how to change the default document to something custom.. For example...

By default when you dial-up my webpage (www.hallusin8.com) you're automatically defaulted to www.hallusin8.com/index.htm. Now, i want to change my default page to.... http://hallusin8.com/Merchant2/merchant.mv?Screen=SFNT&Store_Code=1

Kinda long eh?

I'm not too sure how to do this without using a stupid re-direct command which takes too long. I need this to be instantaneous like Amazon's site - check it out...


Any suggestions are highly appreciated!
 

teriba

Golden Member
Oct 7, 2001
1,130
0
0
Here comes some code:

<html>
<head>
<script>
<!--
function do_the_chacha()
{
top.location.href = "http://hallusin8.com/Merchant2/merchant.mv?Screen=SFNT&Store_Code=1" ;
}
-->
</script>
</head>
<body onload="do_the_chacha()">
</body>
</html>
 

jacklutz

Senior member
Aug 13, 2001
605
0
0
They need to specify this. If you're not happy with a redirect, consider a frameset with a top frame nearly invisible, with the bottom being your store.
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
have the index.html have a header/meta that forwards it to the other page
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
i dunno what you guys are talking about

if you have apache, use an .htaccess file.
 

Transition

Banned
Sep 8, 2001
2,615
0
0


<< Here comes some code:

<html>
<head>
<script>
<!--
function do_the_chacha()
{
top.location.href = "http://hallusin8.com/Merchant2/merchant.mv?Screen=SFNT&Store_Code=1" ;
}
-->
</script>
</head>
<body onload="do_the_chacha()">
</body>
</html>
>>




Thank you sir. I'll have to try that out today.. :D:D:D
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
transition -

that code will run client side. if you want it to be foolproof, make an .htaccess file with

DirectoryIndex /Merchant2/merchant.mv?Screen=SFNT&Store_Code=1
 

Transition

Banned
Sep 8, 2001
2,615
0
0


<< transition -

that code will run client side. if you want it to be foolproof, make an .htaccess file with

DirectoryIndex /Merchant2/merchant.mv?Screen=SFNT&Store_Code=1
>>



Hrm alright. I was diggin in my FTP and i don't already see a .htaccess file that existed so i take it i'll need to create it. I'll give it a shot.
 

Transition

Banned
Sep 8, 2001
2,615
0
0
Ahh - where do i put the .htaccess file at? I got it in my default directory (not www but a level below that) and it doesn't do anything..
 

Schlocemus

Golden Member
Apr 18, 2001
1,198
0
0
Can you check to see if the Apache installation recognizes .htaccess? It should be in the smb.conf file...