Hi, I have a subdomain - example.net.com which redirects (302) to: example.net.com/main.aspx. My questions are: 1. How do I make a 301 redirect? 2. What is the best solution in that situation? (my wish is to have example.net.com as the homepage. Thanks, Rozettea
Why not just add main.aspx into your "documents" list and put it at the top of it? Then whenever someone visits example.net.com they will be shown that page. Redirects are not a good solution. If it's a dedicated server you can do this through the web site properties, and if you have a control panel most of them allow you to specify the document list and re-order it.
Thanks RonBrown. May I ask: what do you mean by "documents"? Why not use 301? Btw - it's not a dedicated server.
Every site will have a list of default documents that the web server will look for when <domain.com> is requested. In the case of .NET the default document is usually default.aspx. You can create a list of documents that the web server should look for, and the web server will look down this list - starting from the top - to see if any of them exist. If they do, that is what it will display. So you're default documents list should have main.aspx at the top of the list, and that is what the server will show. >>it's not a dedicated server. Doesn't matter, that choice will be available in any control panel you use, or else you can ask support to set "main.aspx" as the top default doc for that web site. >>Why not use 301? Btw That's the wrong question. The real question is "why use 301?". You should only do that if there's no alternative or you need another page to be opened for for pre-processing. Doesn't sound like you need that and just want to just straight to main.aspx, in which case you need to update your default documents.