Questions tagged [url-rewrite]

For questions related to URL rewriting that specifically pertain to Sitecore, including Sitecore's native URL rewriting logic, customizations, etc. This tag should not be used for general URL rewriting questions that are not specific to Sitecore.

Filter by
Sorted by
Tagged with
0 votes
2 answers
39 views

how to include custom domain name in the redirection rule

We have a redirection rule written on the web config as like below <rule name="x to y" stopProcessing="true"> <match url="x(/.*){0,1}$" /> <action ...
shahul's user avatar
  • 47
0 votes
1 answer
45 views

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

We would like to check whether the particular URL request having the bucket structure. If it is having, we just need to replace that value with blank values and do the redirection (only for article ...
Astle's user avatar
  • 385
1 vote
2 answers
57 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
2 answers
259 views

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

in existing production we have URL structure as follows https://mainsite.com/subsite Now the sub site URL structure changed as follows https://mainsite.com/newsubsite/subsite2 We want to redirect old ...
shahul's user avatar
  • 47
1 vote
0 answers
31 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
4 votes
2 answers
102 views

Renaming items with rewrite url module

I've been tasked with renaming a number of content items. That should be simple enough, but because these items are pages, the client also wants to have redirecting. There is already installed URL ...
Nikolay's user avatar
  • 41
1 vote
1 answer
1k views

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

I am looking for IIS Rewrite Rule to redirect from old domain to new domain along with appending querystring parameters to new domain. As I have gone through some articles but I am not getting. I am ...
Kumari Dimple's user avatar
0 votes
0 answers
313 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
1 answer
197 views

200 error on a bad URL request

Well this is weird, we have a Sitecore 9.1 multisite, and when someone tries to access https://www.abc.com/www.cc.com/ it is redirecting to 200 status code but with a server error message but if I ...
ashes321's user avatar
1 vote
0 answers
1k views

"Could not resolve keys for the segment" in Experience Analytics when using UrlRewrite module

Currently, using UrlRewrite (https://github.com/iamandycohen/UrlRewrite) module adapted for Sitecore 9, but I'm not able to get results due to "Could not resolve keys for the segment 'ba6e2a68-...
Alexander's user avatar
  • 1,273
0 votes
2 answers
107 views

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

I have deleted some PDFs from the Sitecore media library by replacing them with new PDFs which were already added to the library. As a result, the media URL is now changed. The owner now says they ...
TPTP's user avatar
  • 1
1 vote
2 answers
2k views

Is there a URL Rewrite module for Sitecore 10.1.0?

Does anyone know of a URL Rewrite module that is compatible with Sitecore 10.1.0 without SXA?
Bill Thomas's user avatar
0 votes
0 answers
18 views

Sitecore And Web Service on Same Hostname not working [duplicate]

We have a Sitecore instance with a domain - abc.com and a Custom WebService is created which is also using the same domain as abc.com/internalservice.asmx, upon calling this service from Sitecore ...
Rohan Bhateja's user avatar
0 votes
1 answer
138 views

SXA Extending Component Search URL

Working on Sitecore 9.3. What I'm trying to do is edit a base .js file, being component-search-url.js. Specifically, I want to update the setEndpoint function to always return the endpoint. Currently ...
Ben Davies's user avatar
2 votes
1 answer
1k views

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

I want to redirect my urls added in the Rich Text Editor,General Links to custom urls on page load. To get the URLS which exist in the General Link field and in the Rich Text Editor, I am using the ...
Gautam Aneja's user avatar
0 votes
3 answers
378 views

Sitecore Dynamic URLs on data driven pages

What would be the best way to handle the Dynamic URLs in Sitecore 9.1? For example, I have a Blog page and Blog details page. Blog page will have multiple blog details. When user is clicking on any ...
Prabhu Ranganathan's user avatar
1 vote
1 answer
185 views

URL rewrite from www to naked domain

We've got a Sitecore 9 Azure app service instance We've got redirects set up as follows: <rule name="Root Hit Force HTTPS Redirection" enabled="true" stopProcessing="true"> <match url="...
SitecoreNoob's user avatar
0 votes
0 answers
209 views

Site config exclude relative path for few pages

I have my site definition like below: <site patch:before="site[@name='website']" name="mysite" hostName="mysite.com" scheme="https" notFoundItem="not-found" ...
nari447's user avatar
  • 407
1 vote
1 answer
182 views

Redirect SXA site url matching query string using IIS Redirect Module

We are using Sitecore 9.0.2 and SXA 1.7.1 and we are using Sitecore Redirect module . There are some Redirects in system which have query string Parameter like the example mentioned below: OLD URL: ...
Alivor Tikos's user avatar
2 votes
0 answers
528 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
0 votes
2 answers
2k views

Redirect URL A to URL B

I want to redirect one URL to the another. Suppose, I have 2 URLs www.abc.com/home/gateway [Item for /gateway is not created in sitecore] www.xyz.com/newgateway.php [This is not a Sitecore Webpage] ...
PSS's user avatar
  • 607
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
1 answer
2k views

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

We've got a Sitecore 9 Azure app service instance that we're having a singular issue with. We've got redirects set up as follows: <rule name="Redirect to www" stopProcessing="true"> <...
Ken McAndrew's user avatar
  • 5,092
0 votes
1 answer
154 views

How to make query to form as part of base URL

I have a requirement where we need to retain a URL from a legacy system (Umbraco). The way legacy works is a search page that filters search results via query string but in the format of rest API. e....
arseny's user avatar
  • 181
0 votes
0 answers
547 views

Implement domain redirects while using sitecore URL Rewrite module

In this post we have successfully implemented the subdomain redirect so now I'm going to implement domain redirect itself. Entered URL: www.mysite.com Expected URL: www.samplesite.com/about/history ...
Sukhjeevan's user avatar
5 votes
3 answers
6k 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
0 votes
1 answer
731 views

Redirecting any CM page URL to Experience Editor mode

I am on Sitecore 9 update 1 , XP1 topology-Azure PaaS environment. I am looking for an option of redirecting any Content Management URL to Experience Editor mode. It will redirect login if not logged ...
FHN's user avatar
  • 441
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
1 vote
1 answer
3k views

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

I imagined this would be fairly simple given the lack in posts about it (anywhere really) but we're hitting a bit of a problem with this one. The module in question is URL Rewrite. It's installed ...
Box's user avatar
  • 71
4 votes
1 answer
385 views

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

We are using the Sitecore Azure Module to deploy to CD delivery farms. We want to use an IIS Rewrite Rule to redirect all traffic on CD to SSL - however, we do not want the same rule applied on CM (...
Arvind Gehlot's user avatar
1 vote
0 answers
1k views

Sitecore URL Rewrite Module not working with query string

I'm using the Sitecore URL Rewrite Module found here: https://marketplace.sitecore.net/Modules/Url_Rewrite.aspx The module allows you to create redirect items. The redirect items have the fields Path ...
c-bro's user avatar
  • 557
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
5 votes
2 answers
866 views

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

I have a situation where i need to map a source url with out query string parameters to a internal destination url with query string, Lets say /pag1 to /page2?Id=1 is this possible? it work if i ...
Abdulrahman Awwad's user avatar
10 votes
3 answers
3k views

URL Rewrite Module Format for Simple Redirects

I just installed the URL Rewrite Module for Sitecore 8.1. However, I do not believe the simple redirects are working correctly. I get my page not found page versus getting the page I want redirected ...
Toby Gutierrez's user avatar