View Full Version : Root as a web application
purts
04-17-2009, 09:13 AM
So I uploaded all my website's files/folders on the root (/) but apparently when I try to access www.MyDomainName.com it's still the DiscountASP panel. However, when I create a folder called Test, upload all my website to it, make it a Web Application and access www.MyDomainName.com/Test, it works.
I want it to work directly on www.MyDomainName.com
What is your default page filename? Most likely its being trumped by the DiscountASP.NET default page. You can remove the DiscountASP.NET default page from your root.
bruce
04-17-2009, 10:09 AM
there should be a file named index.htm in the site root. remove that.
purts
04-20-2009, 09:46 AM
OK I deleted index.html but now when I go to www.MyWebSite.com I'd like to see (redirect) as default page the page "Accueil.aspx" in a folder called EL. What should I do?
www.MyWebSite.com => www.MyWebSite.com/EL/Accueil.aspx
raymondp
04-20-2009, 09:59 AM
For this you'll need to setup a redirect script. In IIS all startup page will begin in the root. If you want it to start in a subdirectory a redirect script will be the only way to achieve it. Try referring to this kb article on an example of setting up a redirect script.
https://support.discountasp.net/KB/a369/how-to-redirect-a-subdomain-to-a-subdirectory.aspx?KBSearchID=29036
This kb shows how to redirect subdomains to a subdirectory but you can also use it for just your domain name.
purts
04-20-2009, 10:14 AM
So I should put this script in a index.htm (default)? I've tried but I think it's failing.
Here's my index.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("epicerielauziere.com") ) > 0 Then
Response.Redirect("/EL/Accueil.aspx")
End If
%>
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
raymondp
04-20-2009, 10:55 AM
yeah that should work.
Joseph Jun
04-21-2009, 10:32 AM
If you've placed the code within an HTML file, the server-side code that you've specified will not work since the .htm/.html extensions aren't configured by default to be handled by one of the scripting engines.
The easiest workaround would be to rename the file to either .asp or .aspx so that the code can be processed as a classic ASP application or an ASP.NET application and you'll need to make sure that the file name that you use is configured as a default document.
purts
04-22-2009, 10:41 AM
Everything's working. Thanks for the help mods! Could you please delete this thread now? Thank you.
We don't delete threads, since someone with a similar issue could be helped by reading them.
procosiorg0
06-15-2009, 11:02 AM
So I uploaded all my website's files/folders on the root (/) but apparently when I try to access www.MyDomainName.com (http://www.MyDomainName.com) it's still the DiscountASP panel. However, when I create a folder called Test, upload all my website to it, make it a Web Application and access www.MyDomainName.com/Test (http://www.MyDomainName.com/Test), it works.
I want it to work directly on www.MyDomainName.com (http://www.MyDomainName.com)
I upload my web site and my database, but when i want to see I cant because I have the next message
We're sorry, the web page you are trying to reach is unavailable.
Please contact the website administrator.
We apologize for the inconvenience.
I have a file default.aspx, for the start page, when I type with this the mesagge is
page not found
please give me a solution
vBulletin® ©Jelsoft Enterprises Ltd.