This URL mapping module for Sitecore allows authors to define redirects.
Install-Package Unic.UrlMapper
Please follow the instructions in the README.txt of the nuget package. Please note that UrlMapper uses a custom SolR index.
The {domain}
token can be used in the Search URL
field, eg. http://{domain}/redirect-me-pls
.The token will be replaced during indexing with the values defined in the UrlMapper.Domain.Author
and UrlMapper.Domain.Delivery
settings.
Redirects can be imported from within the Dashboard > All Applications > Redirect Importer dialog. The expected CSV format is as follows:
Name;SearchUrl;RedirectUrl;SubFolder;IsPermanent
Google;http://{domain}/sample-redirects/google;https://google.com;samples;true
Amazon;http://{domain}/sample-redirects/amazon;https://amazon.com;samples;false
You can use the allowedSites
and restrictedSites
child nodes on the HttpRequest
processor provided to specify the site context the module should run.
To manage multiple sites at once, add a tenant="mySites"
attribute to the sites you would like to manage with one setting and then use:
<allowedSites hint="list">
<site>mySites</site>
</allowedSites>
The repository contains a pre-configured integration project based on Sitecore 8.2 which you can use for development. Using bob, the environment can be automatically be set up using the bump
command.
The project contains a docker-compose file you can use to set up a pre-configured SolR environment. Execute \misc\Docker\install-docker.ps1
to start the container.
01_modules_solr
to use a custom urlMapperSolrIndexConfiguration
instead of the defaultSolrIndexConfiguration
. This prevents the calculated fields to run on unrelated indexes. The index configuration, however, is still based on defaultSolrIndexConfiguration
in order to ensure backward compatibility.isPermanent
in import .csv on entry level. This value can either be false
, true
or empty. true
and false
values have higher priority than the checkbox in the import dialog.mongo
to docker-compose. The instance is mapped to port 12984