Developer forum

Forum » CMS - Standard features » Extending URL Redirects

Extending URL Redirects

António Ramos
Reply

Hi everyone,

Our client need to redirect someone if he search by the term XPTO to a specific URL. e.g. www.website.com/search-results?Keywords=XPTO redirect to www.website.com/XTPO

I was trying do to with the URL Path module but without success. Do we need custom development to do this or there is any other way?

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Antonio

You do 2 things:

  1. Create a page called "search-results" - that would give you a page with that URL. Then on that page, create a razor template, either Layout or Paragraph template, and then make a 301 redirect when you detect "Keywords" in the querystring.
  2. Using IIS url rewrite, you can do everything you want: http://www.iis.net/downloads/microsoft/url-rewrite

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi António,

Is this to fix common spelling mistakes (go from XPTO to XTPO)? If so, Nicolai, doesn't Dynamicweb have somehting for this?

Imar

 

 
António Ramos
Reply

Hi Imar and Nicolai,

This is not for fix spelling mistakes. It's a project requirement from our client. I thought about this and with the suggestion from Nicolai I will use a razor template and redirect the client using the URLPath module.

Best regards,

António Ramos

 

You must be logged in to post in the forum