Forum Moderators: open

Message Too Old, No Replies

New to asp...

... this should be a simple question.

         

RoadRash

7:41 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



Hi guys, sorry for the horrible subject and description. I have no idea how to name this question! This is my first ASP / Windows server site.

My current home page is domain.com/widgets/widget-home.asp Due to the software i use, I can not change the name of the file, or the directory it resides in.

Right now, I have a simple link to the home page at domain.com/default.asp. I am wondering if there is any code i could put in default.asp to show the information from /widgets/widget-home.asp?

For search engine rankings, i think it would be much better to have the site show up when you type in domain.com, not a link to the correct page. HELP!

defanjos

7:47 pm on Jun 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Change your default.asp page to this:

<%
response.redirect "http://www.domain.com/widgets/widget-home.asp"
%>

When people go to default.asp, they'll be automatically redirected to widget-home.asp

Sinner_G

7:50 pm on Jun 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Haven't dabbled with IIS for some time, but can't you just define there that widgets-home.asp is the home page?

RoadRash

8:22 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



Thanks defanjos! That worked just fine, I think i'll go buy a book on ASP tonite, figure i should know the basic basics if i am running this site off ASP! :)