How to place main website in subdirectory

Discussion in 'Getting started' started by discountaspfan, Oct 2, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm a new customer, so apologies if this is a well-known problem. However. I've searched the forums and kb and haven't found the exact problem addressed elsewhere.

    I want my default URL (the one listed on my DASP account page) to point to a web application that I have uploaded to a subdirectory of my DASP root folder.

    Eventually, I also will want my main domain name (www.domain.com) to point to that same web application and subdirectory, although I'm not ready to change the DNS settings to implement that yet, since the site is already live for an existing business.

    For now, I only need the default URL to change, while I am developing.

    Here is what I've done so far:

    1. Used Filezilla FTP client to create a subdirectory named /xxxwebsite within my company's DASP root directory
    2. Used the DASP Web Application Tool to create a web application located at the new subdirectory (/xxxwebsite)
    3. Used VS 2008 > Copy Website to upload all of my web content from local machine to the new subdirectory (/xxxwebsite)
    4. Followed the instructions in KB Article 369 to install a redirection script in the root directory

    Step 4 seems unnecessary to me.

    In addition, when I access pages in my newly uploaded website, they aren't working correctly. For example, references to my .css file which look like /styles/main.css are looking for a "styles" directory in my DASP root directory, rather than under the new subdirectory (/xxxwebsite).

    It's likely that my entire approach is wrong, and that the way to solve this issues is simply by creating a ticket. But I don't know.

    Please help!

    Thanks.
     
  2. Hi,
    When anyone hits your site it will first load the root default page.
    You can use many types of code in that default page to redirect to a folder.

    Are you using ASP.NET for this? If so your site root and your app root can both have default folders. (ASP.NET has default folders for code and master content, etc.)

    You have control over all of this via whatever code method you are using.
    The options in your control panel are default pages and any applications you create for folders. Your root is an app by default.
    All the best,
    Mark
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page