Lombiq / DotNest-Support

Support forum in form of issues for the Orchard Core SaaS DotNest (https://dotnest.com/).
https://dotnest.com
0 stars 1 forks source link

Redirect from the *.dotnest.net domain to the custom one if available (NEST-377) #43

Closed Piedone closed 1 year ago

Piedone commented 1 year ago

When you use a custom domain with your Orchard Core site, it'll be available under example.dotnest.net and example.com as well. This is an issue with search engines since they might index the content in a duplicate way.

To fix this, add a feature that when visiting example.dotnest.net redirects the client (with a redirect HTTP header, i.e. Redirect()) to the custom domain version of the given page (e.g. not just example.dotnest.net to example.com but also example.dotnest.net/some/page to example.com/some/page).

To be able to still visit example.dotnest.net if the custom domain is broken for some reason (and to ensure that there's at least one way to access the site via HTTPS) only do this redirect if none of the following criteria are applicable:

Jira issue