The enchanted broomstick Posted March 23, 2005 Report Share Posted March 23, 2005 ok so my site is made in asp and ive made a flash file as an intro, when you click the "enter" button the link is directed at "home.asp" which i thought would be a good name for the page seeing as it is the home page. Also believing that "index.asp" would be the first page that is brought up on the url adress. so my problem is i want "index.asp" to load up and when the enter button is clicked it takes you to "home.asp" But even when i have "index.asp" in the right directory it always loads up "home.asp" i dont want this, but if i delete the "home.asp" file from the directory entirely then the "index.asp" page will load up first. i dont really know whats going on here but im used to working on html not asp so any help would be greatly appreciated cheers, stu >_< Quote Link to comment Share on other sites More sharing options...
delusional Posted March 23, 2005 Report Share Posted March 23, 2005 Sounds like a server setup thing to me. The chances are the server your hosted on is set up to load any one of several pages if they exist and both home.asp and index.asp are in that list, with home.asp being given preference. You might be able to work around this with something like a .htaccess file (although I'm guessing the server is running IIS, so I don't know what the equivalent is) but by far the easiest route is just to call home.asp something else. Quote Link to comment Share on other sites More sharing options...
Smo™ Posted March 23, 2005 Report Share Posted March 23, 2005 Does your host have any kind of domain control access? If so you may be able to edit the URL to forward to index.asp instead of home.asp, alternatively, just rename the files: so your index.asp becomes home.asp and vice versa. Quote Link to comment Share on other sites More sharing options...
Simon Posted March 23, 2005 Report Share Posted March 23, 2005 Sounds like a server setup thing to me. The chances are the server your hosted on is set up to load any one of several pages if they exist and both home.asp and index.asp are in that list, with home.asp being given preference. You might be able to work around this with something like a .htaccess file (although I'm guessing the server is running IIS, so I don't know what the equivalent is) but by far the easiest route is just to call home.asp something else. ← Indeed the man is correct. A server has a hierarchical structure for how to call the main "index" page. For example, on my server index.html comes before index.php so if you have both in the same directory, index.html will be called, and the .php will just be left. Thinking about it now actually, this shouldn't effect it if you directly link to index.asp, except maybe that index.asp is set to redirect to the parent page. I would also say the easiest way is to just rename offending the page. Quote Link to comment Share on other sites More sharing options...
The enchanted broomstick Posted March 24, 2005 Author Report Share Posted March 24, 2005 the problem is the flash file has already been made and i deleted the project afterwards so i was just left with the finished .swf (its a stupid habit i have of deleting things) its gonna be hard for me to make the enter button link to another page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.