Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - URLRewrite - by default
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

URLRewrite - by default

 Post Reply Post Reply
Author
klr3 View Drop Down
Groupie
Groupie
Avatar

Joined: 20 February 2003
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote klr3 Quote  Post ReplyReply Direct Link To This Post Topic: URLRewrite - by default
    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


Edited by klr3 - 30 April 2009 at 4:41pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2009 at 4:48pm
Yes this looks correct.

Back to Top
klr3 View Drop Down
Groupie
Groupie
Avatar

Joined: 20 February 2003
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote klr3 Quote  Post ReplyReply Direct Link To This Post 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!!!!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.