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

Questions tagged [redirect]

For questions related to redirects in Sitecore, covering native redirects configuration and functionality, customization, programmatic redirects as part of page functionality, and other redirect-related questions

Filter by
Sorted by
Tagged with
22 votes
3 answers
6k views

URL Redirects, When to use Sitecore vs. when to use IIS UrlRewrite Rules

For the purpose of this conversation, let's leave URL rewriting that doesn't result in a browser redirect off the table. Here are a number of URL Redirect scenarios that are regularly encountered for ...
sitecorerick's user avatar
  • 2,329
7 votes
1 answer
2k views

How to setup a Reverse proxy with Sitecore?

Is there a way that for certain URLs (like /blog/*) to load the content from other server, i.e implementing a reverse proxy? We were able to do this with a normal site (non Sitecore) but when ...
daniels's user avatar
  • 171
6 votes
2 answers
1k views

How to deep link into Experience Editor so that user is redirected after login?

We have a case where we need to notify approvers when a page is sent for approval. In the notification email, I want to include a link so that the approvers can go directly to the page in the ...
Jonas Hamnered's user avatar
6 votes
1 answer
22k views

Redirecting to another item in an AJAX request

I am using Sitecore 8.2 with MVC. I am trying to perform a page redirect, but my code isn't working. I'm calling an MVC controller action method from JavaScript using a jQuery AJAX call. The ...
sukesh's user avatar
  • 3,162
5 votes
3 answers
7k views

Sitecore 301 Redirect or IIS URL Rewrite

I am working on Sitecore project and using 301 redirect for our website. Right now our redirect chain is http://example.com/ >> http://www.example.com >> https://www.example.com >> https://www....
NIkhar Bhavsar's user avatar
4 votes
1 answer
2k views

Implementing redirect url feature in the ItemResolver pipeline

I'm working on a redirect url feature and have added a pipeline processor after the ItemResolver. However the value of HttpContext.Current.Request.Url.LocalPath equals "/layouts/system/...
NS31's user avatar
  • 81
4 votes
1 answer
849 views

Sitecore Redirect Module created redirects when an item has moved above/below a sibling but still has same path

I'm using the 301 Redirect Module in Sitecore 8.2. When a user creates a new item, it is automatically placed under the parent in alphabetical order, and then when they move it to the order it's ...
Erica Stockwell-Alpert's user avatar
3 votes
2 answers
1k views

301RedirectModule isn't working for URL with dot file name

We are migrating the site from Java Vignette platform to sitecore. And we have redirect requirement. Looks like most of the Java URL seems to have dot. portal/site/template.oldRegisteration I'm ...
Nil Pun's user avatar
  • 2,293
3 votes
2 answers
2k views

Implement subdomain redirects while using sitecore URL Rewrite module

For all kind of vanity URL redirection we are using URL Rewrite module in our sitecore project which is running fine. For Ex: CASE 1 Input URL: www.mysite.com/history Target URL: www.mysite.com/...
Sukhjeevan's user avatar
3 votes
2 answers
2k views

301 Redirect Module compatability with Sitecore 9

the 301 Redirect Module doesn't say that it supports Sitecore 9 https://marketplace.sitecore.net/Modules/3/301_Redirect_module.aspx?sc_lang=en Has anyone tried setting it up in Sitecore 9 and were ...
Steve Ward's user avatar
2 votes
2 answers
725 views

How to set a default page for a folder?

I want to link a child item to this folder. So that if any visitor hit the URL pointing to this item, should automatically show the linked item/page. What would be the best way of achieve this? I ...
AmateurCoder's user avatar
2 votes
2 answers
1k views

HTTPS to HTTPS 301 redirect for whole domain?

We have a Sitecore.NET 8.1 (rev. 160519) installation running IIS (version 8.5.9600.16384) Our instance runs roughly 600 websites and we often have clients that switch their domain name after already ...
NoMonitor's user avatar
2 votes
1 answer
3k views

Can SXA redirect map entries redirect from a Sitecore URL to an external one?

The title more or less says it all. Having trouble figuring out how to redirect a Sitecore address to an external website URL, or if that's something that the SXA redirect map is capable of doing
David Hake's user avatar
2 votes
1 answer
4k views

URLRedirection Custom HttpRequestProcessor

I am currently trying to build 301 redirect module in sitecore9.trying to receive requested URL .will be verifying in the content tree if requested URL has redirect URL then redirect to the URL with ...
sindu's user avatar
  • 629
2 votes
2 answers
167 views

XMCloud Vercel app Redirect URL from uppercase to lowercase

We have an XMCloud application using NextJs, which we are deploying to Vercel. On the Vercel side, it is working fine. We have a requirement where if someone is adding uppercase/Camelcase in the URLs ...
Mahendra Shekhawat's user avatar
2 votes
1 answer
1k views

How to include querystring in Redirects

I need to redirect to certain page based on querystring value. For Ex: Case 1 Old Url: /cs/satellite?code=10015 New Url: /Redirects/page1 Case 2 Old Url: /cs/satellite?code=10016 New Url: /...
Manideep Yechuri's user avatar
2 votes
2 answers
427 views

Sitecore analytics is not working after doing changes in IIS Url Rewrite Module

Client wanted to have a trailing slash at the end of urls and it should be redirected with 301. I have configured in IIS Url Rewrite and It is working fine as expected but I am getting an issue in the ...
arjunan's user avatar
  • 408
2 votes
1 answer
337 views

301 redirect on sub domain

To handle 301 redirect we have made changes in pipeline and written following class public class CustomRedirect301 : PreprocessRequestProcessor { public override void Process(...
Sukhjeevan's user avatar
2 votes
0 answers
570 views

Language specific redirects with UrlRewrite sitecore module

I've done alot of looking around but I can't seem to find the answer to an issue I am facing. Is it possible to use the UrlRewrite module from the Sitecore marketplace to perform language specific ...
pmann91's user avatar
  • 21
1 vote
2 answers
404 views

301 Redirects for Non SXA site in a Sitecore SXA instance

I have a Sitecore instance with both SXA and Non SXA sites. I want to implement 301 redirects for both the sites. For the SXA site, I'm able to do it through the SXA Redirect Map but how do I perform ...
Sumit Upadhyay's user avatar
1 vote
1 answer
2k views

Sitecore Url not working - layout not found error

We have just upgraded from Sitecore 8.1 update 4 to Sitecore 9.0 update 2. Almost all the functionalities are working. We have an issue with one url. When I tried to access the URL below, I got the ...
PaRsH's user avatar
  • 159
1 vote
2 answers
574 views

IIS redirect for legacy URLs - Sitecore interference

I have a site I'm redesigning into Sitecore. The old URLs are at https://[host]/Old/[path(s)]/Pages/[ID].aspx and I want them to be translated to https://[host]/Post/[ID]. I wrote an IIS redirect rule ...
Ken McAndrew's user avatar
  • 5,102
1 vote
1 answer
2k views

Why does Sitecore redirect with status code 302 for page not found errors? [closed]

I know that there are solutions for this, and I have written some myself, but what I don't understand is why Sitecore doesn't redirect with 404 OOTB for page not found errors. Does anyone know if ...
Zachary Kniebel's user avatar
1 vote
2 answers
2k views

Redirect Maps for wildcards not working

I am mapping old Urls to new Urls using Sitecore 9.0 with SXA 1.5 - Redirect Map following this document: https://doc.sitecore.net/sitecore_experience_accelerator/16/working_with_content/search/...
Ramani's user avatar
  • 13
1 vote
2 answers
425 views

How to allow editors to configure redirection for a particular Item/Page?

I've so many links in different website for a particular page in sitecore. I want to allow Editors to configure the redirection for that particular Item to a new page. What is the best way of doing ...
AmateurCoder's user avatar
1 vote
1 answer
158 views

Sitecore Identity callback path issue

I have set up 2 identity provider plugins in sitecore identity, one is being used for /sitecore login the other is used for one of our portals to authenticate against. Both use Okta as the IdP, ...
Matthew Pigram's user avatar
1 vote
1 answer
820 views

Redirect url with Trailing slash in the end of every url

I have a requirement where I need to redirect every URL and add trailing / in the end. Example : www.site1.com/abc should redirect to www.site1.com/abc/. Forward slash "/" should be added to ...
Vikram's user avatar
  • 9
1 vote
2 answers
68 views

Disable click if page has subitems in SXA

I am working on the navigation control and I am using horizontal version with sub-items. If a page has sub-item, I was it to redirect to dummy fragment. For example, href="#dummy" I am ...
Imad's user avatar
  • 235
1 vote
2 answers
524 views

How to redirect default English content Item to Default website in Sitecore?

I am trying to redirect https://www.mydomain.com/en to my default site i.e. https://www.mydomain.com/en-US I have tried with Sitecore module, it is working if i select any language other than en like ...
Jitendra Ghanekar's user avatar
1 vote
3 answers
192 views

Redirect map template not working in sitecore 10.2

In Sitecore 10.2 Sxa, I am trying to add redirection rules with redirect map, which is under the settings item. But when I try to add a redirect map , redirection does not work. What could be the ...
Sara Elgendy's user avatar
1 vote
1 answer
131 views

Sitecore Controller MVC Redirect takes me to base URL instead of specified path

I am having an issue in Sitecore where when I try to redirect to a particular page from within a Controller, it takes me to the home URL of the website instead of the path that I am specifying. This ...
Matthew Pigram's user avatar
1 vote
2 answers
84 views

Redirect 2 different DNS names to two different pages in IIS

We have a server that hosts two applications on the same default site. Default Web Site Inventory Expenses We also have two DNS names pointing to the same ip address: myinventory.mycompany.com ...
Mike Hizny's user avatar
1 vote
0 answers
35 views

Potentially dangerous Request.Path & illegal characters in path [duplicate]

I am trying to fix this "Potentially dangerous Request.Path" issue when URL contains characters like these - &, <, >, ! Basically, I need to redirect the page to 404. Ex: https://&...
Sharath's user avatar
  • 53
1 vote
0 answers
35 views

Redirect mapping media item in Sitecore SXA [duplicate]

I have already asked the question related to redirect mapping of media item in Sitecore SXA. This question is related to get this functionality though custom code or pipeline. I have not found any ...
Nisha's user avatar
  • 411
1 vote
2 answers
198 views

Third Party alias within Sitecore 8.2

When we transferred over to Sitecore the agency that helped us do this used a third party alias/redirect app supposedly within Sitecore to redirect a lot of links from the old website. From what I ...
james_dean's user avatar
1 vote
0 answers
229 views

Custom Redirect to Parent page other than 404

I have a parent page with many children pages. Some of those children were deleted and I would like to redirect those broken pages that currently go to 404 page back to the parent page. I am ...
user6919's user avatar
1 vote
0 answers
434 views

Sitecore redirect module auto-generated redirects have wrong requested url

Sitecore 8.2 update 3. Single site. Redirect Module: https://github.com/thecadams/301RedirectModule The redirect module is automatically creating the redirect rules when an item's url changes, but it ...
Michael's user avatar
  • 520
1 vote
0 answers
223 views

SXA Redirect URL with Query String

I've tested a number of redirect scenarios using the map URL in SXA, but cannot get the URL structured below to redirect. Is it possible to redirect a query string with the following format? It seems ...
user9571447's user avatar
0 votes
1 answer
694 views

How to implement a Reverse Proxy in Sitecore? [duplicate]

I have a Sitecore URL (wwww.abc.com/home/legend). I want to call a different URL when this URL is called. Suppose, I have URL A - wwww.abc.com/home/legend (Sitecore One) URL B - www.xyz.com/hello.php ...
PSS's user avatar
  • 607
0 votes
1 answer
7k views

WebUtil.Redirect - Cannot redirect after HTTP headers have been sent

We have simple code below: string returnUrl = "/sitecore/content/; WebUtil.Redirect(returnUrl); However, the the last line above seems to throw an exception below: 6156 2016:11:18 06:41:01 ERROR ...
Nil Pun's user avatar
  • 2,293
0 votes
2 answers
188 views

Show maintenance page for a sub page on the website for a fixed timeframe

We are currently on Sitecore 9.0.2 rev. 180604 and have a website www.abc.com and it has a web page called www.abc.com/a and this is the page that relies on back end systems. These systems have a ...
Rathan M's user avatar
  • 361
0 votes
1 answer
483 views

Writing an IIS rewrite rule for the Sitecore control panel URL

If I try to access http://mydomain.com/sitecore I get a 403 error. I would instead prefer for IIS to automatically redirect to https://mydomain.com/sitecore. I added the following rule in ...
Emanuele Ciriachi's user avatar
0 votes
1 answer
690 views

Redirecting old URLs to new ones after migrating to Sitecore

We are working on migration project where we are migrating from legacy CMS system to Sitecore 8.2 and we are migrating around 300 pages to Sitecore One of the requirement where we have is to ...
user2332873's user avatar
0 votes
1 answer
49 views

Sitecore + next.js 301 redirects

Is there a way to handle (receive in the middleware for example) 301/302 status code from Sitecore server returned to next.js as a response for Layout service call? I used to use custom Node based ...
Lukasz123123's user avatar
0 votes
2 answers
72 views

Embedding language in home page url

I am using Sitecore 10.3 and JSS next app, I need to add language in the home page URL. Ex: https://mydomain.com to https://mydomain.com/en/, also need all URLs to end with /. can I do this from IIS??
shimaa elsayed's user avatar
0 votes
1 answer
71 views

How do I add an external URL to my site's navigation menu?

I am new to Sitecore and I am trying to figure out how to add an external URL link to the site's navigation menu. The URL in question is supposed to link to the business's YouTube channel. I've ...
Hamadyne's user avatar
0 votes
0 answers
14 views

Get Url with section value in HttpRequestProcessor [duplicate]

I am building redirect module where i need to get the request url from browser with section value. Example : https://www.site1.com/news#category1. I am not able to get #category1 in code using args....
Prateek's user avatar
0 votes
0 answers
80 views

301 Redirect Module works randomly with languages

We are using this 301 Redirect Module: https://github.com/thecadams/301RedirectModule We have an issue where we are redirecting with the language identifier in place in the URL to a URL that does not ...
Toby Gutierrez's user avatar
0 votes
0 answers
401 views

URL Redirect map is not working when i use the language in the OLD URL path

In the Sitecore 8.2: I'm trying to redirect the OLD URL to the NEW URL. Using the Redirect MAP 301. When I use language code in the OLD URL the redirection is not working. It's resolved to 404. other ...
vinayagamoorthy S's user avatar
0 votes
0 answers
291 views

Sitecore form Redirect to page submit a action redirecting to wrong url

I am using Sitecore 10.1. The Sitecore form's redirect to page submit action is redirecting to the wrong url. I have two Sites in the Sitegrouping (Auth and Prod). Auth Site is using the master ...
Owais Ahmed's user avatar