I have a asp.net app, in which my start up is inside a directory Home of the root. That ~/Home/Home.aspx should be mine startup page. But when I upload it to my production server, and I type the url it displays nothing. So I need some settings in my web.config so that it will automatially get redirected to that page.
My host is using Parallel plesk 9.5.x
Thanks
4
Answers
Have you tried doing this:
response.redirect(“page.aspx”)
on the index page?
Create a new page on your site root with name ‘index.htm’ in that page add the following meta tag to redirect the user to home page.
The number in the content attribute is the time, in seconds, until the page should be redirected. Then, separated by a semi-colon (;) you write the URL to the page to be loaded.
Here you can find how to change the default document of a web in plesk
http://kb.hyve.com/wiki/DefaultDocumentsHowDoIChangeTheDefaultDocumentOnPlesk
In order to set default page with Windows Plesk:
In the option as Documents, you can set the order of which files are searched. If you want index.php instead of index.html, you would make sure that the index.php is listed above index.html.
You can use the same option to set non existing file as the preferred filename.