AspNetCore.RouteSeo 1.0.2

Install-Package AspNetCore.RouteSeo -Version 1.0.2
dotnet add package AspNetCore.RouteSeo --version 1.0.2
<PackageReference Include="AspNetCore.RouteSeo" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.RouteSeo --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AspNetCore.RouteSeo, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AspNetCore.RouteSeo as a Cake Addin
#addin nuget:?package=AspNetCore.RouteSeo&version=1.0.2

// Install AspNetCore.RouteSeo as a Cake Tool
#tool nuget:?package=AspNetCore.RouteSeo&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage


Just put these two configurations in your Startup.cs file of your APS.NET Core application.

using AspNetCoreRouteSeo;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // other service configurations...

        services.ConfigureRouteSeo(options =>
        {
                options.LowercaseUrls = true;
                options.TrailingSlash = Mode.Required;
                options.Www = Mode.Required;
        });

        // other service configurations...
    }

    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        app.UseMvc(routes =>
        {
            routes.UseRouteSeo();

            // other routes...
        }
    }
}

Author

  • Sina Soltani - Linkedin Please let me know if you find any bugs or have any suggestions by sending an email to soltani.sina1989@live.com.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 700 4/23/2018
1.0.1 502 4/22/2018

prevent other routes from processing the request when RouteSeo takes the control.