Search code examples
regexdotnetnuke

Friendly URLS in DotNetNuke for replacing localization settings


I like to change two kinds of URLS in my DotNetNuke setup:

/fr-ca/Anything to /fr/Anything

AND

/en-us/Anything to /en/Anything

I went into Host > Settings > Advanced > Friendly URLS and tried this

Match

.*fr-ca/(.*)

Replace with:

.*fr/(.*)

But this isn't working...?

EDIT: Based on the answer below I did...

Match

(.*/fr)-ca(/.*)

Replace:

$1$2

This made the url look the way I want but now it goes to a broken page?


Solution

  • I woudl highly recommend iFinity URLMaster to do what you want. I know it is not free but I hesitated a long time and finally got it. I can say it is worth every penny.