can homepage be index.aspx?

A

ALI-R

My home page of my website is named index.aspx ,when I upload it to the host
,I get 403 forbidden error,If I put an index.html there that link that aspx
file,eveything works perfect?

my second questions is that how can I get rid of the name of my
homepage,it's now www.x.xom/index.aspx ,is ther a way of getting rid of
index.aspx ,but reffering to it somehow?

Thanks
 
G

Guest

1. Depends on your host. In the control panel for your account, they might
let you specify a non-standard startup page (e.g. something other than
index.html and default.aspx).

2. Once you get your startup page right, you won't need to refer to it in
the url (i.e. you can just go to www.mysite.com, not mysite.com/index.aspx).
If you do want somebody to enter, say, index.aspx, but you really want to
take them to myOtherPage.aspx, check out rewritePath which you can use at
application begin_request.

Bill
 
A

ALI-R

Thanks for your help,

1)Default.aspx worked for me

2) I didn't get what you meant ,could you give more explanation?

Thanks
 
C

Chris

To do what you want you will need access to the IIS Server that is hosting
the site. You need this in order to change the default startup pages within
a website setup on that server. You can go into properties on the Virtual
Directory and select the documents tab at top. Once in there you can add a
new filename you want the site to default to. By placing index.aspx within
the list it will allow you to type www.mylink.com and it will automatically
assume that index.aspx is the home page and redirect to it. Be careful
though not to have any other files with names of the defaults listed or it
will redirect to the wrong page. Ex would be naming one file index.aspx
after you add this to the defaults list and then have default.aspx listed as
well. Which ever comes first it will redirect to.

--


Thanks,
Chris Allen
Senior Systems Developer


Optimus Solutions LLC
 
A

Ali-R

Thanks Chris,

Chris said:
To do what you want you will need access to the IIS Server that is hosting
the site. You need this in order to change the default startup pages
within
a website setup on that server. You can go into properties on the Virtual
Directory and select the documents tab at top. Once in there you can add a
new filename you want the site to default to. By placing index.aspx within
the list it will allow you to type www.mylink.com and it will
automatically
assume that index.aspx is the home page and redirect to it. Be careful
though not to have any other files with names of the defaults listed or it
will redirect to the wrong page. Ex would be naming one file index.aspx
after you add this to the defaults list and then have default.aspx listed
as
well. Which ever comes first it will redirect to.

--


Thanks,
Chris Allen
Senior Systems Developer


Optimus Solutions LLC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top