tecman
  •  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2014-06-13T15:41:40Z
When we used YAF 1.9.x, a forum thread link looked like this:

/Forum/yaf_postsm1103_forums-C--Code-syntax-highlighting-breaks-on-square-bracket-array-0--values.aspx

Now this topic has another URL generated dynamically:

/Forum/default.aspx?g=posts&t=433#post1103

As you understand, all numerous links we had became broken...

Is there a way to use the previous URL generation engine?

I admit there is an option in the forum settings, but I couldn't find one.
Sponsor
Zero2Cool
2014-06-13T15:56:24Z
Check the app.config for the URL ReWriter options.
DennisO
2014-06-16T04:54:17Z
Hi,

im getting wrong url link on watch forum notification.

the links sends to the users was http://server-name/forum/forum/default.aspx?g=posts&m=21#post21. it should be http://server-name/forum/default.aspx?g=posts&m=21#post21. is it a bug or just a configuration that i missed?
tecman
  •  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2014-06-16T14:04:21Z
Zero2Cool, yes the following setting should be true:

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


And we must restart the web app to apply it - just changing the app.config file isn't enough 😉
Zero2Cool
2014-06-16T14:06:03Z
Originally Posted by: tecman 

Zero2Cool, yes the following setting should be true:

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


And we must restart the web app to apply it - just changing the app.config file isn't enough ;)



Correct, app restart is required when changing any of the .config files except the web.config. Altering web.config automatically restarts the app, at least, to my understanding. 🙂

There is also a second setting. Somewhere in that app.config you can choose standard or advanced url rewriting.
DennisO
2014-06-23T01:06:07Z
Thank you so much. will try that
DennisO
2014-06-23T01:40:26Z
i tried the suggestion above, but still the link looks like this..

http://server-name/forum/forum/default.aspx?g=posts&m=21#post21.

Anymore suggestion?
Zero2Cool
2014-06-23T01:44:03Z
Can you show your app.Config file? Remove your password and any secret keys for Twitter or Facebook.
DennisO
2014-06-23T07:28:20Z
Here's the config file. Do i need to restart the whole iis? i just changed the app config and edit the web.config.

<appSettings>
<add key="YAF.BoardID" value="1" />
<add key="YAF.EnableURLRewriting" value="true" />
<add key="YAF.UrlRewritingFormat" value="standard" />
<add key="YAF.URLRewritingMode" value="Translit" />
<add key="YAF.UseSMTPSSL" value="false" />
<add key="YAF.DatabaseObjectQualifier" value="yaf_" />
<add key="YAF.DatabaseOwner" value="dbo" />
<add key="YAF.ConnectionStringName" value="yafnet" />
<add key="YAF.ProviderExceptionXML" value="ProviderExceptions.xml" />
<add key="YAF.AppRoot" value="~/" />
<add key="YAF.ProviderKeyType" value="System.Guid" />
<add key="YAF.MobileUserAgents" value="iphone,ipad,midp,windows ce,windows phone,android,blackberry,opera mini,mobile,palm,portable,webos,htc,armv,lg/u,elaine,nokia,playstation,symbian,sonyericsson,mmp,hd_mini" />
<add key="YAF.RadEditorSkin" value="Black" />
<add key="YAF.UseRadEditorToolsFile" value="true" />
<add key="YAF.RadEditorToolsFile" value="editors/radEditor/toolsFile.xml" />
<add key="YAF.ConfigPassword" value="12345" />
<add key="YAF.BaseUrlMask" value="http://ForumWeB/CheckForum/" />
</appSettings>
Zero2Cool
2014-06-23T11:54:30Z
Originally Posted by: DennisO 

Here's the config file. Do i need to restart the whole iis? i just changed the app config and edit the web.config.

<appSettings>
<add key="YAF.BoardID" value="1" />
<add key="YAF.EnableURLRewriting" value="true" />
<add key="YAF.UrlRewritingFormat" value="standard" />
<add key="YAF.URLRewritingMode" value="Translit" />
<add key="YAF.UseSMTPSSL" value="false" />
<add key="YAF.DatabaseObjectQualifier" value="yaf_" />
<add key="YAF.DatabaseOwner" value="dbo" />
<add key="YAF.ConnectionStringName" value="yafnet" />
<add key="YAF.ProviderExceptionXML" value="ProviderExceptions.xml" />
<add key="YAF.AppRoot" value="~/" />
<add key="YAF.ProviderKeyType" value="System.Guid" />
<add key="YAF.MobileUserAgents" value="iphone,ipad,midp,windows ce,windows phone,android,blackberry,opera mini,mobile,palm,portable,webos,htc,armv,lg/u,elaine,nokia,playstation,symbian,sonyericsson,mmp,hd_mini" />
<add key="YAF.RadEditorSkin" value="Black" />
<add key="YAF.UseRadEditorToolsFile" value="true" />
<add key="YAF.RadEditorToolsFile" value="editors/radEditor/toolsFile.xml" />
<add key="YAF.ConfigPassword" value="12345" />
<add key="YAF.BaseUrlMask" value="http://ForumWeB/CheckForum/" />
</appSettings>



Change 'standard' to 'advanced' and then restart your app via the restart app in your YAF host settings under I think Maintenance.
DennisO
2014-06-24T00:34:27Z
I encountered 404 error. Page cannot be found when i tried to change from standard to advanced.

by the way the hosting setting for the URL used is http://ForumWeB/CheckForum

Here's the URL for Advanced setup
http://ForumWeB/CheckForum/topics/2-Installation-Forum

Here's the URL for Standard
http://ForumWeB/CheckForum/yaf_topics2_Installation-Forum.aspx
Zero2Cool
2014-06-25T15:30:27Z
Originally Posted by: DennisO 

I encountered 404 error. Page cannot be found when i tried to change from standard to advanced.

by the way the hosting setting for the URL used is http://ForumWeB/CheckForum

Here's the URL for Advanced setup
http://ForumWeB/CheckForum/topics/2-Installation-Forum

Here's the URL for Standard
http://ForumWeB/CheckForum/yaf_topics2_Installation-Forum.aspx



Sorry for late response.

Give these settings a try, then restart the app via YAF admin/host settings.
<add key="YAF.AppRoot" value="~/CheckForum" />		
<add key="YAF.BaseUrlMask" value="~/CheckForum" />
<add key="YAF.ForceScriptName" value="default.aspx" />

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