point & redirect subdirectory to google docs: How do I do this?

Discussion in 'Domain names / DNS' started by xanacan, Jun 3, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. www.small-tall/docs point & redirect to google docs: How do I do this?

    Can anyone tell me a simple way to point or redirect a subdirectory of my domain to google docs? I don't want to pay the extra money for a subdomain like docs.small-tall.com when it can be done (Can it?) from a subdirectory.

    The purpose of the pointing is to provide the user with an online document repository i.e. google docs.

    The Knowledgebase article below provides some code that I think accomplishes this but I am not clear on exactly what to do.

    see http://support.discountasp.net/KB/a369/how-to-redirect-a-subdomain-to-a-subdirectory.aspx


    Here's the code in the article:

    <%
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain1.YourHostedDomainName.com") ) > 0 Then
    Response.Redirect("/subdomain1")
    ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain2.YourHostedDomainName.com") ) > 0 Then
    Response.Redirect("/subdomain2")
    ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain3.YourHostedDomainName.com") ) > 0 Then
    Response.Redirect("/subdomain3/home.asp")
    End If

    HEre are my specific questions:
    My domain is called small-tall.com

    1) What do I put in for server name?

    2) Do I replace the values like this?
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("www.small-tall.com/docs") ) > 0 Then
    Response.Redirect("http://docs.google.com")

    3) The article says "place it as a default document" on your "document root". a)What is a default document, how do you create it and b) Where is the "document root"

    4) What do I do on the google side so that google knows that the redirection is going to our docs repository and not just the generic docs.google.com

    If you can help it would be very MUCH appreciated.
     
  2. If you want a subdomain for your primary domain, you need to have the subdomain add-on.

    When you have the subdomain add-on available, then theoretically that script can be use to redirect the subdomain to Google docs or wherever the case may be.

    Default document means the first file on the list when someone hit your url from the browser. Login to your control panel, navigate to IIS tool section, look for default document tab. The first file in the list is the default document.
     
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