Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I am using version 11.1.0 How do I redirect urls with www to urls without www
I want it to be www.domain.com >> domain.com. I searched a bit but couldn't find a solution. Thanks for your help.
you will need to use a url rewrite rule to do this, that is the job of your webserver not Umbraco. If you are using windows/IIS then ensure you have the IISrewrite module installed and add a rule to your web.config file
Hi Gohkan,
You can also use the .NET core Url Rewriting Middleware : https://learn.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-7.0
In the configure method in your Startup.cs add the following before app.UseUmbraco
var options = new RewriteOptions(); options.AddRedirectToNonWwwPermanent(); app.UseRewriter(options);
Dave
@Dave Thnks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to remove www from url
Hello,
I am using version 11.1.0 How do I redirect urls with www to urls without www
I want it to be www.domain.com >> domain.com. I searched a bit but couldn't find a solution. Thanks for your help.
you will need to use a url rewrite rule to do this, that is the job of your webserver not Umbraco. If you are using windows/IIS then ensure you have the IISrewrite module installed and add a rule to your web.config file
Hi Gohkan,
You can also use the .NET core Url Rewriting Middleware : https://learn.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-7.0
In the configure method in your Startup.cs add the following before app.UseUmbraco
Dave
@Dave Thnks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.