huilaaja / RedirectManager

Simple and portable redirect manager for Episerver websites
14 stars 5 forks source link

No multisite support and support for various hosts. #1

Open huilaaja opened 8 years ago

valdisiljuconoks commented 8 years ago

Hi,

How did you imagine to implement this feature. Were you planning also to include redirect for top level domain? For instance, from yourdomain.com to www.yourdomain.com with 301. Basically I'm looking for SEO friendly solution where I would be able to do redirects without doing magic with URL Rewrite rules (and potentially do changes to sites without deployments).

valdisiljuconoks commented 8 years ago

bumping up..

huilaaja commented 8 years ago

Sorry Valdis, that I haven't answer sooner. I just came back from vacation. Thanks for the remainder.

I haven't thoroughly think through the multisite support but I find your example "yourdomain.com to www.yourdomain.com" quite problematic for this kind purpose. This tool is the last "module" which try to provide content for the request. Unlike URL Rewrite which is the first (or almost at least), so it's more suitable for example. So I wouldn't recommend using this tool for redirects which would effects all the requests in some DNS address. Those rules are quite easy to do with URL rewrite and it’s much more performance wise.

But if the performance wouldn't be a problem, I would add 3 properties in the rules: 1) Host name [string]

And the business logic would be inside of method GetPrimaryRedirectUrlOrDefault(). That should be pretty simple but it needs a bit refactoring also.

Those 3 properties would help in other kind of needs also. That’s why I would separate them in 3 part.

I hope you understand what I meant and if you choose to implement it, I would really like to get it as part of this project (pull request or source code). Unfortunately, I don't currently have any projects going on where I could do and test the implementation.

valdisiljuconoks commented 8 years ago

Main driver for this is to give power editors tool that can give them possibility to control top level redirects. Will see - maybe will try to implement (hope you will not judge my source code :D)

huilaaja commented 6 years ago

Hi @valdisiljuconoks, I just wanted to let you know that RedirectManager finally has that multi-site support that you were asking. There isn't much documentation yet but the new version is already in production at least with 2 clients. So, its basically RTM ;)

Here's just a quick screenshot: https://raw.githubusercontent.com/huilaaja/RedirectManager/master/images/redirect-manager-6.png (The hosts options are compination of all Episerver sites and the hosts)

P.s. See you in thursday :)

valdisiljuconoks commented 6 years ago

awesome. let's review it then.. I'm really keen to start using this and get rid of url rewrites