Print Page | Close Window

URLRewrite - by default

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=27307
Printed Date: 02 April 2026 at 7:08pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: URLRewrite - by default
Posted By: klr3
Subject: URLRewrite - by default
Date Posted: 30 April 2009 at 4:32pm
Hi!
 
First of all, thumbs up for the URL-rewrite via HeliconTech software! Thumbs Up

I´m starting af whole new forum with an emty db, no users yet, and really want have rewrite on forum-urls by default , instead for just making alot of 301-redirects based on title-tags.
 
My question:
I know I have to do some modifications on the forum-urls, which is ok, an would like to ask if the  following code-examples is a propper way to do it?
 
Code (links til forums from forum-frontpage):
Response.Write("<a title=""" & strForumName & """ href="""& SeoUrlTitle(strForumName, "")&"_forum" & intForumID & strQsSID2 & ".html"">" & strForumName & "</a>")
 
Code (latest topic in forum-frontpage):
Response.Write("<a href="""& SeoUrlTitle(strSubject, "") &"_topic"& lngTopicID & strQsSID2 &".html"" title=""" & strSubject & """>")
If blnBoldNewTopics AND intUnReadPostCount > 0 Then 'Unread topic subjects in bold
Response.Write("<strong>" & TrimString(strSubject, 30) & "</strong>")
Else
Response.Write(TrimString(strSubject, 25))
End If
Response.Write("</a><br />")
 
It seems to work, but perhaps there is a better way doing this?
 
Thanks! Smile



Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 April 2009 at 4:48pm
Yes this looks correct.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: klr3
Date Posted: 30 April 2009 at 5:02pm
Thank you for quick reply!
 
- and the thing is, the default URL-rewrite via .htaccess provided with the premium licens still does it´s magic on URL´s should I either have missed modifying the default URLs or if anyone call a forumpage by it´s normal URL´s.
 
Cool! Cool
 
Keep up the good work!!!!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net