Posted by: babyknuckles - Monday, 28 June 2010 19:06:26 |
---|
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. |
Posted by: Jaben - Monday, 28 June 2010 20:09:33 |
---|
What version of .NET? |
Posted by: babyknuckles - Tuesday, 29 June 2010 10:57:03 |
---|
[quote=Jaben]What version of .NET?[/quote] .Net 2.0 |
Posted by: Jaben - Tuesday, 29 June 2010 17:42:33 |
---|
This is only on post back -- I don't really see an issue since it doesn't matter for SEO. What is the problem? |
Posted by: babyknuckles - Tuesday, 29 June 2010 18:03:19 |
---|
[quote=Jaben]This is only on post back -- I don't really see an issue since it doesn't matter for SEO. What is the problem?[/quote] 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 [b]NOT [/b]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. |
Posted by: Jaben - Tuesday, 29 June 2010 18:07:30 |
---|
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. |
Posted by: babyknuckles - Tuesday, 29 June 2010 18:11:00 |
---|
[quote=Jaben]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.[/quote] 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). |