Developer forum

Forum » Feature requests » Direct paths - wildcard or pattern redirects...

Direct paths - wildcard or pattern redirects...

Jacob Storgaard Jensen
Reply

We have a large site where we have 300+ news items. All had previously a URL containing http://www.domain.com/Frontpage/News/ + NewsTitle-1.aspx?PID=395&M=NewsV2&Action=1

The page has been re-structured and the news section has been placed elsewhere on the page.

I would like to be able to create a "pattern-redirect" or what it's called - handling that all URL's containing http://www.domain.com/Frontpage/News/ are rewritten(redirected) to http://www.domain.com/New/Placement + NewsTitle-1.aspx?PID=395&M=NewsV2&Action=1


Replies

 
Asger Munkholm Højfeldt
Reply

Hi Jacob,

I have added your request for the 8.6 release. 

//Asger

 
Filip Lundby
Reply

Was this ever added? We need the same feature. I've tested on 8.6 with star (*) as wildcard, but it doesnt seem to work.

 
Nicolai Høeg Pedersen
Reply

No such thing has been added.

You can use IIS rewriting engine for complexing URL routing.

BR Nicolai

 
Filip Lundby
Reply

Thanks Nicolai

 
Thomas Jensen
Reply

Hi
I guess that it is the same for ver 8.8

when hostet at hostnordic, is this somethins i need to get hostnordic to change everytime i need to move/rename a folder, to redirect all sub content
or is it something i can setup via admin or ftp, my self?

 
Nicolai Pedersen
Reply

You can specifiy rewrite rules in web.config, see the Microsoft docs:

https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

BR Nicolai

 
Thomas Jensen
Reply

Thanks

That worked, (after i found that, it's the Web.config under "application", i needed to add the rewrite rules to)