Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sean Holmesby 61 posts 82 karma points
    Mar 28, 2011 @ 02:32
    Sean Holmesby
    0

    Admin not working on WinHost.com account using multiple domains

    Hi,

    I'm not sure if this is an Umbraco issue, or a WinHost issue, so I've posted this on both forums.


    I have a WinHost account with 10 databases available to me, and I planned to run a couple of websites from different subfolders. I've setup the domain pointers, the application start points, and the url rewrites to make this happen, and the sites work fine.

    However, one of the websites runs on Umbraco, and when I go to the admin page of that site, the admin page is missing styling and javascript.

    Looking at the source, the CSS is normally linked in through:-

    Code:
    <link rel="stylesheet" type="text/css" href="DependencyHandler.axd?s=L2JlbnRsZWlnaGZjL3VtYnJhY29fY2xpZW50L3BhbmVsL3N0eWxlLmNzczsvYmVudGxlaWdoZmMvdW1icmFjb19jbGllbnQvc2Nyb2xsaW5nbWVudS9zdHlsZS5jc3M7L2JlbnRsZWlnaGZjL3VtYnJhY29fY2xpZW50L3VpL2RlZmF1bHQuY3NzOw%3d%3d&amp;t=Css&amp;cdv=1" />
    When I click on this link I get an exception:-
    System.ArgumentException: Could not parse the type set in the request
    When I had this Umbraco installation running from the root (before I wanted multiple sites on this account) everything worked fine. Does anyone know what might be causing this problem?

    Here is what I have done to make the multiple websites work.
    Here is the web.config in '/'
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <modules runAllManagedModulesForAllRequests="true" />
            <rewrite>
                <rules>
                    <rule name="Rewrite to website one" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{HTTP_HOST}" pattern="^www.saintskeeta.com$" />
                        </conditions>
                        <action type="Rewrite" url="saintskeeta/{R:1}" />
                    </rule>
                    <rule name="Rewrite to website two" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{HTTP_HOST}" pattern="^www.johndoe.com$" />
                        </conditions>
                        <action type="Rewrite" url="johndoe/{R:1}" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    Here is the section I added to the web.config in my folder '/saintskeeta'. This makes my links on this site redirect so that the subfolder is not placed in the URL. 
    i.e a link will be www.saintskeeta.com/news.aspx instead of www.saintskeeta.com/saintskeeta/news.aspx.
    Code:
    <system.webserver>
    .
    .
    .
        <rewrite>
            <outboundRules>
                <rule name="Outgoing - URL paths" enabled="true">
                    <match filterByTags="A, Form, Img, Input, Link, Script" pattern="saintskeeta/(.*)" />
                    <conditions>
    
                    </conditions>
                    <action type="Rewrite" value="/{R:1}" />
                </rule>
            </outboundRules>
        </rewrite>
    </system.webServer>
    Here is the url rewrite I needed to add to the UrlRewriting.config for this Umbraco instance to get the admin page just to display.
    Code:
    <add name="saintskeetaRewrite"
                    virtualUrl="^/saintskeeta/(.*)"
                    rewriteUrlParameter="ExcludeFromClientQueryString"
                    destinationUrl="~/$1"
                    ignoreCase="true" />
    I have added Domain Pointers to each of the sites, and set the Application start points for both sites to be the subdirectories listed in the first web.config.

    As I said, the site itself works, but the umbraco admin page is missing css and js, and even when I login, I cannot do anything (supposedly because of the missing JS).

    Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft