AspNetCore.RouteSeo 1.0.2

It prevents web sites from having duplicate/multiple URLs in the search engines like Google, Bing, Yahoo, etc.
It can check for appending/removing TrailingSlashes, WWW, and LowerCase URLs.
If the URL is not a correct URL, It changes the URL and redirects (301 Moved Permanently) the request to the corrected URL.
To learn how to use it, please see the documentation.

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.

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.

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.

Release Notes

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 315 4/23/2018
1.0.1 190 4/22/2018