How can I remove the appended "/myapp" portion of my domain name/URL?

Discussion in 'General troubleshooting' started by Clay Shannon, Aug 29, 2013.

  1. I just registered my domain name / published my site with discountasp.net, and I have two issues:

    1) If I go to the site name (www.awardwinnersonly.com), it opens the discountasp.net site, not my own; I must go to www.awardwinnersonly.com/myapp to see my site, and that is not what I want users to have to do (append "/myapp" to the URL)

    2) The .json files that my site loads are not being loaded from that URL. IOW, the site is basically unusable at this point. I think I know why, and I think the solution would be for discountasp.net to point www.awardwinnersonly.com to my site without the need of an appended "/myapp"; I think this would probably clear up both problems.

    But...am I wrong? Is this (removing the "/myapp" something I can do myself?
     
  2. FrankC

    FrankC DiscountASP.NET Staff

    it looks like you put your site in the /myapp directory. To achieve what you want, simple put the application in the root.
     
  3. Thanks, Frank; is that something I have to do from Visual Studio, or can I love it from /myapp to the root from DiscountASP.NET's tools?

    BTW, I don't think that "/myapp" should be a default landing location for files; at the very least, it should warn people that if they use that, they will have to navigate to "www.<YourSiteName>.com/myapp" which kind of siphons.
     
  4. martino

    martino DiscountASP.NET Staff

    That's something you will need to change in Visual Studio. In the web deploy settings you just need to remove the part /myapp.

    Our web deploy settings is set up to deploy to a subdirectory called /myapp. So to web deploy to the root of the hosting account just remove the /myapp in the "Site/application" section and in the "Destination URL" section.
     
    mjp likes this.
  5. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    A reason why it's the default landing location is because Web Deploy will overwrite files. It's to help prevent customers from accidentally overwriting their entire website.
     
    mjp likes this.
  6. Perfect; thanks.

    That's what I want to do when I update my site - overwrite all the old stuff.

    Hey, Ray - quit playing that git-fiddle and get back to work! {:)
     
    mjp likes this.
  7. I did what was suggested, but still, when I navigate to www.awardwinnersonly.com, I get the discountasp.net site, and when I navigate to www.awardwinnersonly.com/myapp, I get "The page cannot be displayed because an internal server error has occurred."

    I'm pretty sure I did what was suggested, namely in Visual Studio (2012 Ultimate), I selected "Build > Publish Web" and I removed the "/myapp" from Site name, so that it's now "awardwinnersonly.com", and I did the same with Destination URL, so that it is now

    http://www.awardwinnersonly.com

    However, I see in the Preview section that the file names still contain "\myapp"; is that okay, or how can that be fixed?

    I did see at http://www.awardwinnersonly.com a message that my site is up and running, and that I would need to remove the index.html file, but how? I see no link on the page after logging in. It sure isn't obvious (not to me, anyway).

    Oh, I see now it says I can now upload my files, but I already did that. When I go to www.awardwinnersonly.com/myapp, I see:

    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.
    Detailed Error Information:

    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x80070003
    Config Error Cannot read configuration file
    Config File \\?\E:\web\awardwinner\htdocs\myapp\web.config
    Requested URL http://www.awardwinnersonly.com:80/myapp
    Physical Path E:\web\awardwinner\htdocs\myapp
    Logon Method Not yet determined
    Logon User Not yet determined

    Config Source:
    -1: 0:
     
  8. Okay, it's working, and probably had been for awhile -- the problem was, I had been trying to access it at www.awardwinnersonly.com, whereas it is really at http://awardwinnersonly.com

    However, I'm not sure that's what it is supposed to be, or things got messed up somehow, yet they still work, because shouldn't it have a "www"? In fact, Visual Studio said, "Site was published successfully http://www.awardwinnersonly.com/" ??? I hope this doesn't mean I'm going to have trouble updating my site, as I know that it does say the target URL includes a "www"...
     
    Last edited: Aug 29, 2013
  9. FrankC

    FrankC DiscountASP.NET Staff

    mjp likes this.
  10. Cool, thanks; they're both working fine now from my perspective, too.
     

Share This Page