Copied to clipboard

Flag this post as spam?

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


  • 2le 1 post 21 karma points
    May 10, 2014 @ 22:27
    2le
    0

    requesthandler problem, site crash

    Hi Umbracos

    I am having some problems on my site, since I am running several domains on several folders, on same solution, like shown here:

    Main
    - Folder: Domain: mysite.dk
    - Folder: Domain: mysecondsite.dk

    Problem is that I can access the pages from several domains, duplicate content, and so on.

    I have tried the requestHandler as shown her:

    <requestHandler>
        <!-- this will ensure that urls are unique when running with multiple root nodes -->
        <useDomainPrefixes>false</useDomainPrefixes>
        <!-- this will add a trailing slash (/) to urls when in directory url mode -->
        <addTrailingSlash>true</addTrailingSlash>
        <urlReplacing removeDoubleDashes="false" toAscii="false">
            <char org=" ">-</char>
            <char org="&quot;"></char>
            <char org="'"></char>
            <char org="%"></char>
            <char org="."></char>
            <char org=";"></char>
            <char org="/"></char>
            <char org="\"></char>
            <char org=":"></char>
            <char org="#"></char>
            <char org="+">plus</char>
            <char org="*">star</char>
            <char org="&amp;"></char>
            <char org="?"></char>
            <char org="æ">ae</char>
            <char org="ø">oe</char>
            <char org="å">aa</char>
            <char org="ä">ae</char>
            <char org="ö">oe</char>
            <char org="ü">ue</char>
            <char org="ß">ss</char>
            <char org="Ä">ae</char>
            <char org="Ö">oe</char>
            <char org="|">-</char>
            <char org="&lt;"></char>
            <char org="&gt;"></char>
        </urlReplacing>
    </requestHandler>

    1. I have no idea where to put into the webconfig. Which place does it belong to?

    2. When ever I put it into the webconfig, the site crashes with:

    The requested page cannot be accessed because the related configuration data for the page is invalid.


    Any hints?

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 11, 2014 @ 01:08
    Jan Skovgaard
    0

    Hi There

    The above configuration should be placed in the /config/umbracoSettings.config file - and you should change the

    Doing this should make it all work. However you should recycle the app pool after altering the umbracoSettings.config file. That can be done simply by touching the web.config file.

    What version of Umbraco are you using btw?

    Hope this helps.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft