A twenty something in technology
TwentyTech Inc

Remove the Useless WWW from DotNetNuke

If you’re like me and find the use of WWW in URLs both unnecessary and annoying then here is a little tip for you to easily remove it from all your urls.

Note: Before you proceed make sure you have an DNS (A) record setup already for your domain with and without the www.

DotNetNuke provides a FriendlyURL Provider that allows for regular expression matches in Host Settings. Here you can create a new rule that removes the WWW and issues a 302 redirect to the non-www domain.

Create a new rule that:

  • Matches: (.*)www.(.*)
  • Replaces: $1$2

RemoveWWW

 
Comments

No comments yet.

Leave a Reply