Developer forum

Forum » CMS - Standard features » Multi redirect

Multi redirect

Simen Mindrebøe
Reply

Hi,

What will be the best way to redirect a directory path of a url in DW9/DW10?
Like when you rename a folder/category and don't want to add a redirect for every single sub page?
Regex doesn't seem to work in the built in redirect tool, and I'm not sure if we can edit the .htaccess file somehow?

Thanks

Br Simen


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply
This post has been marked as an answer

Hi SImen,

On windows servers there is no .htacces file. Instead, you can add the redirect rules in IIS or in the web.config directly.

Adrian

Votes for this answer: 1
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

DW9 and DW10 comes with built in redirect features.

DW10: https://doc.dynamicweb.dev/manual/dynamicweb10/settings/system/webhttp/Redirects.html

DW9: https://doc.dynamicweb.com/documentation-9/platform/platform-tools/redirects

DW10 supports a bit of wildcarding - but not /page/sub-page/other-page to be a /page/sub-pager/* -> /page/new-subpage/$1 

It would be a nice feature though

 
Simen Mindrebøe
Reply

web.config looks to be the way to go! Thanks, Adrian.

Will always try to avoid making url changes like this, but when they’re unavoidable it’d be great to have full wildcard support right in the Redirects tool.

Thanks guys

 

You must be logged in to post in the forum