index.html or index.aspx

Associate
Joined
25 Feb 2006
Posts
194
Just a simple Y or N ... Is it OK to use "index.aspx" as a default web page? Will all browsers open it?

(Both files have been created for my Silverlight app by VS2010 and I prefer to use .aspx - if possible - because I can add .NET) I'm hesitant to link to the index.aspx in case some browsers wont read it.. and in case I need to do something else to fix it. Thanks for any help.
 
The file extension of your sites' code can be whatever the hell you like* so long as the headers of the code declare the content type to be html/text. All browsers will render it correctly, and it won't affect SEO at all.


*so long as it has been declared correctly with the appropriate handler in apache/iis. A client I had a few years ago wanted all their pages to have the extension .ace as this was the company name abbriviated.
 
It don't matter what its called. Its just all about if the server knows how to server the page. Browsers only read the contents of what they get given.

If your running a .Net IIS server then index.aspx is your preferred default page, as you can use .Net code. Although, using the "web.config" file you can set up any default page name/extension.
 
Just a simple Y or N ... Is it OK to use "index.aspx" as a default web page? Will all browsers open it?

(Both files have been created for my Silverlight app by VS2010 and I prefer to use .aspx - if possible - because I can add .NET) I'm hesitant to link to the index.aspx in case some browsers wont read it.. and in case I need to do something else to fix it. Thanks for any help.

Not really. Only do it if you're sure the server will serve it up properly (If your server is running IIS/ASP.NET you're probably ok).
 
Back
Top Bottom