SteBruBra
  •  SteBruBra
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
2017-03-29T18:08:37Z
Hello,

we've another startpage than the default.aspx (using a selfmade portal, filename portal2017.aspx).

Changing the default document to another one doesn't take effect.

web.config:

...
<defaultDocument enabled="true">
        <files>
            <clear />
          <add value="portal2017.aspx" />
        </files>
    </defaultDocument>
...


The UrlRewriter.config was extended too:

...
<if url="^((?!\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js|install|error|auth\.aspx|popup\.aspx|advanced\.aspx|digest\.aspx|portal2017\.aspx|default\.aspx|ftb.imagegallery\.aspx|ckfinder).)*$">
    <rewrite url="^~/(.+)?\?(.+)?$" to="~/Default.aspx?g=$1&amp;$2" processing="stop" />
    <rewrite url="^~/(.+)?\.aspx$" to="~/Default.aspx?g=$1" processing="stop" /> 
    <rewrite url="^~/(.+)?$" to="~/Default.aspx?g=$1" processing="stop" />
  </if>
...


By typing it in the URL, the Portal works fine.

Any ideas about this?

Many thanks!!!




Sponsor

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved