Skybrud.redirect not working with multisite hostna...
# help-with-umbraco
d
Hi, i am using skybrud.redirect package for umbraco 13 and itโ€™s not working when I setup the hostname for my multisite. If I remove the hostname then redirect works as expected. Anyone having this issue? Any help is appreciated in advance ๐Ÿ™‚. Thank you
@Anders Bjerner can you please help as this package is created by you? Any suggestion is greatly appreciated. Thanks!
a
Generally this should also work fine in the Umbraco 13 package. Can you share some more information about your setup? What kind of hostname have you added to your site node? Just the domain like
www.example.org
or something like
https://www.example.org/en/
? Is your site by any change behind a proxy?
d
Thank you for quick reply. Domain setup is like example.com, no www or https
a
Then it should work fine. No proxy or something similar? Most often it turns out to be a proxy or some custom middleware that causes problems
d
Site is hosted umbraco cloud so we are default umbraco setup for hostname. I am not aware of any proxy setup. Redirect works if I remove the hostname and use default umbraco generated urls
a
What version of Umbraco? And what version of Skybrud Redirects?
d
13.5.2
Skybrud 13.0.4 and also using skybrud import 13.0.0
a
If you can add this as a view or partial view somewhere, it should indicate the host name and URI the redirects package will see:
Copy code
cshtml
@using Skybrud.Umbraco.Redirects.Extensions
@inherits UmbracoViewPage

@{

    <pre>Host: @Context.Request.Host</pre>
    <pre>URI: @Context.Request.GetUriForRedirects()</pre>

}
Both should have the host name as configured for your site in Umbraco.
d
Thanks! Both host names coming same. I see the problem in the back office under redirect tab. Since original URL is relative path so clicking directly from original URL is taking you to the umbraco.io url which was always throwing 404.
a
So does it work if you enter the URL of the redirect manually in the address bar of your browser?
8 Views