volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More. 

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More. 

Making a small extension to URLRewrite provider?

Hi, We are creating a globalized EPiServer web site where several different domains will point to the same web site. However, we would like to return different content when robots.txt is requested depending on which domain name/host name the request is made from. For instance, when domain.se/robots.txt is requested, we would like to return the content of robots.txt.se, and when domain.com/robots.txt is requesed, the content of robots.txt.com should be returned. This should be transparent to the robot/visitor that actually makes the request. I've managed to do this by adding an event handler in Application_OnStart in global.asax: UrlRewriteProvider.ConvertingToInternal += new EventHandler
#15928
Dec 12, 2007 18:12
You may want to have a look at this: http://labs.episerver.com/en/Blogs/Ruwen/Dates/111218/112064/112154/
#16652
Dec 13, 2007 22:40
I need to do something similar in 4.62 - is there an equivalent event I can hook into for this?
#16653
Mar 06, 2008 15:22
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.