Mariette
  • Posts: 63
  • Joined: 07/06/2004
It does not seem to do anything as far as I can see. On my site a URL looks like this:

http://www.domain.com/forum/g/posts/t/29/some-subject-of-a-post


On this forum such a URL will look like this

http://domain.com/forum/posts/t17700-some-subject


And similar for Categories etcetra

Do we need a Extension URL Provider in DNN for this to work or is this something done natively in YAF and needs configuration?
MJK
Sponsor
tha_watcha
  • Posts: 4067
  • Joined: 06/03/2010
Quote:

Do we need a Extension URL Provider in DNN for this to work or is this something done natively in YAF and needs configuration?



In the dnn module the url rewriting for YAF can be configured via the appSettings in the web.config...

 <!--
  ******************************************************************
	** UrlRewritingFormat Key ** Defaults to: standard **
  
  This setting defines how the URL's will be formated, two formats are 
  available...
  "advanced" - Will format URL's as short as possible without an extension
  Example: "http://mydomain.com/forum/topics/1-Test-Forum" 
  "standard" - The simple rewrite format
  Example: "http://mydomain.com/forum/yaf_topics1-Test-Forum.aspx"
  
  Without Rewrite the URL's will look like this..
  Example: "http://mydomain.com/forum/default.aspx?g=topics&f=1"
  
  -->
  <add key="YAF.UrlRewritingFormat" value="advanced" />

UserPostedImage
Mariette
  • Posts: 63
  • Joined: 07/06/2004
That does not change anything to the URL. Here are the settings in my web.config:

    <add key="YAF.BoardID" value="1" />
    <add key="YAF.UseSMTPSSL" value="false" />
    <add key="YAF.DatabaseObjectQualifier" value="yaf_" />
    <add key="YAF.DatabaseOwner" value="dbo" />
    <add key="YAF.ConnectionStringName" value="SiteSqlServer" />
    <add key="YAF.ProviderExceptionXML" value="ProviderExceptions.xml" />
    <add key="YAF.ProviderKeyType" value="System.Guid" />
    <add key="YAF.FileRoot" value="~/DesktopModules/YetAnotherForumDotNet" />
    <add key="YAF.AppRoot" value="~/DesktopModules/YetAnotherForumDotNet" />
    <add key="YAF.ForceScriptName" value="default.aspx" />
    <add key="YAF.ShowToolBar" value="true" />
    <add key="YAF.AllowLoginAndLogoff" value="false" />
    <add key="YAF.RadEditorSkin" value="Default" />
    <add key="YAF.UseRadEditorToolsFile" value="true" />
    <add key="YAF.RadEditorToolsFile" value="~/DesktopModules/YetAnotherForumDotNet/editors/radEditor/toolsFile.xml" />
    <add key="YAF.ConfigPassword" value="****" />
    <add key="YAF.URLRewritingMode" value="Unicode" />
    <add key="YAF.BaseUrlMask" value="http://www.domain.com/" />
	<add key="YAF.UrlRewritingFormat" value="advanced" />
    <add key="DefaultDevicesDatabase" value="DesktopModules\DevicePreviewManagement\Resources\defaultDevices.xml" />

MJK
Mariette
  • Posts: 63
  • Joined: 07/06/2004
I tried on a clean DNN 8.0.2 installation with YAF 2.2.2 and found the same behaviour.
MJK
tha_watcha
  • Posts: 4067
  • Joined: 06/03/2010
There is one setting missing in the appSettings

<add key="YAF.EnableURLRewriting" value="true" />

UserPostedImage
Mariette
  • Posts: 63
  • Joined: 07/06/2004
Tried that but same issue
MJK
tha_watcha
  • Posts: 4067
  • Joined: 06/03/2010
Sorry i think i need to do some clarification. I looked at your site and your first posting. The urls in dnn and in a standalone yaf are a little bit different.

In dnn there are more parameters in the url. Because i don't use the Url rewriter that is used in the standalone yaf. Because in dnn it would conflict with the friendly url rewriter that is used in dnn
UserPostedImage
Mariette
  • Posts: 63
  • Joined: 07/06/2004
Ah OK. No problem. If it is working as it should I am happy but I just thought I had something wrong because the URL's looked different.
MJK
hismightiness
  • Posts: 50
  • Joined: 21/11/2016
I'm testing this myself and running into the same issue. I've added the following and still have the out-of-the-box unfriendly URLs.

    <add key="YAF.URLRewritingMode" value="" />
	<add key="YAF.EnableURLRewriting" value="true" />
	<add key="YAF.UrlRewritingFormat" value="advanced" />

Will Strohl
CEO & Founder, Upendo Ventures
UpendoVentures.com 
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    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