YAFLogo

babyknuckles
14 years ago
I have the YAF URL rewriting almost working but am encountering a strange issue. If you imagime my normal url structure to look like this for all posts in topic 4:

www.mysite.com/forum.aspx?g=posts&t=4

The url re-written url correctly displays as:

www.mysite.com/yaf_postst4_mytestpost.aspx

The problem arises when I then click on the rewritten url it brings me to the correct page but, for example if I click on the user profile link it's showing up as:

www.mysite.com/yaf_postst4_mytestpost.aspx?g=posts&t=4

Any idea why this is happening? It's driving me mad.

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
What version of .NET?
babyknuckles
14 years ago

What version of .NET?

Jaben wrote:

.Net 2.0

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
This is only on post back -- I don't really see an issue since it doesn't matter for SEO. What is the problem?
babyknuckles
14 years ago

This is only on post back -- I don't really see an issue since it doesn't matter for SEO. What is the problem?

Jaben wrote:

Hi,

The problem is that the links aren't SEO'd and in a lot of cases they don't work properly. I probably haven't explained it properly.

For example I go to the forum initally and I click on the first forum, let's call it 'Test Forum'.

I get brought through to a page called something like yaf_topics1TestForum.aspx and that's cool.

Problem arises with the links *within* there, instead of the links being something like:

yaf_postst1_MyTestPost.aspx

It's linked as:

yaf_topics1TestForum.aspx?g=posts&t=22

Which either doesn't work or goes through to the wrong page.

It gets weirder because if I then change the URL of the page I'm currently on so that it's NOT rewritten and hit refresh, the page loads and all the links are now properly rewritten and work fine.

But once I click on any of them though it goes back to the problem described above.

Hope this is clear, if not let me know.

NB: This isn't on postback, this is the actual rendered link on the page, it's appending the querystring to rewritten url for some reason.

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
I think you're running on .NET v4 and maybe don't know it -- because this is the issue I see with .NET v4. It's fixed in v1.9.4 final.
babyknuckles
14 years ago

I think you're running on .NET v4 and maybe don't know it -- because this is the issue I see with .NET v4. It's fixed in v1.9.4 final.

Jaben wrote:

Heh :cheesy:

I understand but I've been developing .Net for quite a few years so am 110% sure it's 2.0, our server doesn't have the 4.0 framework on it (or even the 3.5 for that matter) so it's definitely not that issue. What was the resolution for the 4 framework though?

BTW, the forum version is 1.9.3 if that matters (couldn't use 1.9.4 due to 3.5 requirement).