Chris Hammond is
a father, husband, developer, geek, car guy. The Director of Training for DotNetNuke Corporation. To learn more about Chris check out the about me page.
LIVESTRONG Challenge Davis

I use Strava to track my bicycle rides. Below you can see my recent activity.

 

Tags
  1. 12 items are tagged with .net
  2. 58 items are tagged with asp.net
  3. 47 items are tagged with Autocross
  4. 12 items are tagged with Baby
  5. 39 items are tagged with Boston Red Sox
  6. 21 items are tagged with California
  7. 15 items are tagged with Car
  8. 29 items are tagged with Community Server
  9. 14 items are tagged with communityserver
  10. 17 items are tagged with Corvette
  11. 26 items are tagged with daily tips
  12. 93 items are tagged with Development
  13. 180 items are tagged with DotNetNuke
  14. 25 items are tagged with DotNetNuke Development
  15. 11 items are tagged with DotNetNuke Tips
  16. 12 items are tagged with DotNetNuke Training
  17. 12 items are tagged with Electric
  18. 12 items are tagged with Energy
  19. 25 items are tagged with Family
  20. 73 items are tagged with Fitness
  21. 117 items are tagged with Friends
  22. 44 items are tagged with Games
  23. 32 items are tagged with general Software Development
  24. 13 items are tagged with Green
  25. 22 items are tagged with HDTV
  26. 18 items are tagged with Health
  27. 13 items are tagged with Leaf
  28. 381 items are tagged with Life News
  29. 12 items are tagged with Microsoft
  30. 39 items are tagged with Music
  31. 14 items are tagged with Nissan
  32. 13 items are tagged with Nissan Leaf
  33. 88 items are tagged with Photography
  34. 18 items are tagged with Photos
  35. 89 items are tagged with Pictures
  36. 108 items are tagged with Places to See
  37. 20 items are tagged with Project 240Z
  38. 12 items are tagged with Project 350Z
  39. 21 items are tagged with Red Sox
  40. 19 items are tagged with Red Sox in St. Louis
  41. 15 items are tagged with SCCA
  42. 418 items are tagged with SEO
  43. 203 items are tagged with Site News
  44. 33 items are tagged with St. Louis
  45. 275 items are tagged with Technology
  46. 41 items are tagged with Travel
  47. 17 items are tagged with Vista
  48. 16 items are tagged with Weblog
  49. 16 items are tagged with Xbox360
  50. 12 items are tagged with Zune

Setting up IIRF to redirect to www

Last Updated Monday, February 18, 2008 4:01 PM


By: Chris Hammond

So I have been doing some testing on my website and needed to redirect requests to http://chrishammond.com to http://www.chrishammond.com/. Lucky for me the site is using IIRF to manage my urls from the old community server days to my DotNetNuke conversion.

Using IIRF I'm able to create a simple rule that will handle the redirects for me, I've pasted it below.

# force proper www. prefix on all requests
RewriteCond %{HTTP_HOST} ^chrishammond\.com [I]
RewriteRule ^/(.*) http://www.chrishammond.com/$1 [I,RP]

Recent Comments

[RP] - ? it's not in the official documentation Where did you get it from ?

Posted By: Furmek F on Thursday, March 06, 2008 8:01 AM
RP doesn't have any meaning to IIRF. I think it means "redirect permanently" on Helicon's ISAPI rewrite. If you want that in IIRF, just use [R] or combine it with [I] like [I,R].
Posted By: Cheeso C on Saturday, June 14, 2008 9:07 PM
Hi Chris, I've tried your suggestions above but no joy (I added the changes from the comment above this but still couldn't get it to work) Not sure quite what I'm doing wrong... any ideas? Thanks Simon RewriteCond %{HTTP_HOST} ^mydomain\.co.uk [I] RewriteRule ^/(.*) http://www.mydomain.co.uk/$1 [I,R]
Posted By: Simon Nicol on Wednesday, October 21, 2009 10:17 PM
I'm not actually using IIRF anymore, I use the URLMaster module for DotNetNuke, available from http://www.ifinity.com.au/
Posted By: Chris Hammond on Wednesday, October 21, 2009 11:40 PM
I just figured it out. The rule used is a RewriteRule. To redirect, use RedirectRule instead. RedirectRule ^/(.*) http://www.domaincom/$1 [R=301]
Posted By: Sujay R on Monday, November 09, 2009 5:34 PM