Skip to main content
Share Your Experience: Take the 2024 Developer Survey
12 votes

URL Rewrite Module Format for Simple Redirects

In my investigation and research into this issue I spoke with Andy Cohen the contributor for this module and he let me know that here is the proper format for Simple Redirect paths: http://xyzcompany....
Toby Gutierrez's user avatar
9 votes

Sitecore 301 Redirect or IIS URL Rewrite

Well in any case you will have to bind example.com as well as www.example.com on your website. Next you have multiple options. Either use IIS Rewrite rules. <rule name="Root Hit Force HTTPS ...
Bart Verdonck's user avatar
9 votes

How to setup a Reverse proxy with Sitecore?

We faced the same issue about a month ago. You can use the following rewrite rule. <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> ...
Tamás Tárnok's user avatar
7 votes
Accepted

Sitecore 301 Redirect or IIS URL Rewrite

Yes, You can achieve this requirement through Sitecore 301 Redirect Module or IIS URL Rewrite both. Paste the below Code inside your <system.webServer></system.webServer> element in the ...
Ashish Bansal's user avatar
6 votes

Sitecore Url Rewrite Module map source url with out query string parameters to destination url with query string parameters

This is possible with the IIS rewrite module. This example comes from the Microsoft iis.net site: to rewrite http://localhost/pag342 to: http://localhost/page2?id=342 you would need find a pattern ...
Bas Lijten's user avatar
  • 1,857
5 votes

URL Rewrite Module Format for Simple Redirects

The simple redirects assume that your matching url is at the root. There is no need for a beginning forward slash. When you installed the module, it comes with examples located at /sitecore/Content/...
Andy Cohen's user avatar
5 votes
Accepted

Need to have different IIS Rewrite rule on CD and CM while using Sitecore Azure Module

Your CM and CD servers are available by different addresses.(e.g.: cms.test.com and www.test.com) It is possible to filter redirect rule before execution using {HTTP_HOST} variable: <rule name="...
Anton's user avatar
  • 3,831
4 votes
Accepted

Sitecore Url not working - layout not found error

This may happen when you have a sibling item (e.g. folder or item without a layout) with the same name or display name. Be aware that Sitecore replaces hyphens to spaces when it tries to find an item ...
Marek Musielak's user avatar
  • 23.8k
4 votes

How to get URLS added in the Rich Text field and Link Manager Fields?

From what I understand, you want to implement custom logic for generation of internal links added by content authors in Rich Text fields. If that's the case, you need to change the logic of ...
Marek Musielak's user avatar
  • 23.8k
3 votes

URL Rewrite Module Format for Simple Redirects

The path should be the relative to the root of the site (no scheme or domain). It sounds like you also have an error page module or custom built functionality also installed. My guess is that module ...
Ben Golden's user avatar
  • 3,313
3 votes
Accepted

Implement subdomain redirects while using sitecore URL Rewrite module

The Sitecore URL rewrite module is conceptually based on the IIS Rewrite Module Shiva referenced. You would essentially do the same thing Shiva outlined but withing Sitecore using the Inbound Rule ...
Chirag Patel's user avatar
2 votes

How to make query to form as part of base URL

You could use Sitecore wildcard item(s) to achieve this. You create a page underneath searchpage and name it "*". Sitecore will map all request that are made to something underneath searchpage (and ...
Gatogordo's user avatar
  • 20.1k
2 votes

Is there a URL Rewrite module for Sitecore 10.1.0?

Installing Constellation.Feature.Redirects gets you a new Sitecore app for the Sitecore Desktop called Redirect Manager. This application allows you to create, update, export, and import a list of ...
Himmat Singh Dulawat's user avatar
2 votes
Accepted

Redirect old subsite url to new subsite url using URL redirect generic IIS Rewrite Rule

A simple rule like that will do the trick: <rule name="subsite rule" stopProcessing="true"> <match url="^([a-z]{2}(\-[a-z]{2})?/)?subsite(/.*){0,1}$" /> ...
Marek Musielak's user avatar
  • 23.8k
2 votes

how to include custom domain name in the redirection rule

Try this: <rewrite> <rule name="Rule for Somesite" stopProcessing="true"> <match url=".*" /> <conditions> <add ...
Himmat Singh Dulawat's user avatar
1 vote
Accepted

How to replace YEAR and MONTH from URL using IIS rewrite rule?

First of all, IIS Rewrite Rule will not know your template so only for article and not for other templates part cannot be achieved, unless you can specify the part of url which is only present ...
Marek Musielak's user avatar
  • 23.8k
1 vote

Redirect old subsite url to new subsite url using URL redirect generic IIS Rewrite Rule

You can redirect your existing production we have URL to sub site URL as below <rule name="ms1" stopProcessing="true"> <match url="^subsite/?$" /> <...
Rishiraj Shekhawat's user avatar
1 vote

Renaming items with rewrite url module

Installing Constellation.Feature.Redirects gets you a new Sitecore app for the Sitecore Desktop called Redirect Manager. This application allows you to create, update, export, and import a list of ...
Himmat Singh Dulawat's user avatar
1 vote

IIS Rewrite Rule to redirect to new domain along with querystring parameters

You have to add appendQueryString="true" to your <action> tag: <rule name="AllURLRedirect" stopProcessing="true"> <match url="http://olddomain.com/...
Marek Musielak's user avatar
  • 23.8k
1 vote

Possible to retrieve PDFs deleted from the media library or retain their URL for new version?

As mentioned here already, the Recycle Bin is keeping deleted files. If you want to change the pdf that is attached to the media item, you can detach it and attach a new one - this will change the pdf ...
Gatogordo's user avatar
  • 20.1k
1 vote

Is there a URL Rewrite module for Sitecore 10.1.0?

There's no Sitecore-specific URL Rewrite to my knowledge, but perhaps IIS URL Rewrite will do? https://www.iis.net/downloads/microsoft/url-rewrite
Artem Alexeyenko's user avatar
1 vote

SXA Extending Component Search URL

If that would be a JS file connected to any of the search renderings then there is a small chance that you would be able to do it. There is an option to use before and after rendering initialization ...
Dawid Rutkowski's user avatar
1 vote
Accepted

URL rewrite for naked domain to www domain in Azure app service

Turns out the solution was to add the naked domain xyz.com to the custom domains list. It involved pointing the A record and a TXT identifier in the DNS to Azure, so the custom domain system could ...
Ken McAndrew's user avatar
  • 5,102
1 vote

Sitecore Dynamic URLs on data driven pages

There is a wildcard module available in Sitecore marketplace which can exactly help you in your blog post with blog detail scenario. Module's marketplace link : https://marketplace.sitecore.net/en/...
Paulson Maclean's user avatar
1 vote

Redirect SXA site url matching query string using IIS Redirect Module

It's quite difficult to answer this question with certainty as it may be a bit of trial and error, but you can try this rewrite rule <rule name="1" stopProcessing="true" patternSyntax="ExactMatch"&...
Mark Gibbons's user avatar
  • 5,632
1 vote
Accepted

Redirect URL A to URL B

As an alternative you can write your own processor. For example like you would create a 404 processor, but then let it hook into a Sitecore list where you map url's to external links. Like: public ...
Joost's user avatar
  • 505
1 vote

Sitecore 301 Redirect or IIS URL Rewrite

You can write your own re-write rule: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module It is not related to the Sitecore. If you ...
Jitendra's user avatar
  • 1,038
1 vote

Redirecting any CM page URL to Experience Editor mode

You can force the PageMode with a pipeline processor to set the display mode, this will cause the user to be redirected to the Sitecore Login page if they are not previously logged in: public class ...
jammykam's user avatar
  • 13.8k
1 vote

Implement subdomain redirects while using sitecore URL Rewrite module

After changing DNS of the sub-domain to point to your server IP address, you have to redirect traffic from the sub-domain host name(location.mysite.com) to your target URL(www.mysite.com/locations) in ...
Shiva's user avatar
  • 379
1 vote
Accepted

Could not create instance of type: Sitecore.Data.Database error while Installing a Sitecore module on CD server

After going through all the files in the package and checking the content of them I found the culprit. There was a file (Hi.UrlRewrite.Prefetch.Master.config) which references the master database ...
Box's user avatar
  • 71

Only top scored, non community-wiki answers of a minimum length are eligible