public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath, bool alwaysUseManagedServerVariables = default(bool)) => throw null;
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath) => throw null;
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader, bool alwaysUseManagedServerVariables = default(bool)) => throw null;
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRewriter(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null;
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader) => throw null;
public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.Action <Microsoft.AspNetCore.Rewrite.RewriteContext> applyRule) { throw null; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseDatabaseErrorPage(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } var redirOptions = new Microsoft.AspNetCore.Rewrite.RewriteOptions(); redirOptions.Rules.Add(new Code.RedirectToHttpsNoWWW()); app.UseRewriter(redirOptions); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(routes => { routes.MapControllerRoute( name: null, pattern: "Changes", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.Changes) }); routes.MapControllerRoute( name: null, pattern: "FAQ", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.FAQ) }); routes.MapControllerRoute( name: null, pattern: "News", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.News) }); routes.MapControllerRoute( name: null, pattern: "Alerts", defaults: new { controller = "Alerts", action = nameof(Controllers.AlertsController.Index) }); routes.MapControllerRoute( name: null, pattern: "List", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.List) }); routes.MapControllerRoute( name: null, pattern: "Home/List", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.List_legacy) }); routes.MapControllerRoute( name: null, pattern: "Console", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.Console) }); routes.MapControllerRoute( name: null, pattern: "Home/Console", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.Console_legacy) }); routes.MapControllerRoute( name: null, pattern: "Star", defaults: new { controller = "Home", action = nameof(Controllers.HomeController.Star) }); routes.MapControllerRoute( name: null, pattern: "{controller=Home}/{action=Index}/{id?}"); }); }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement, bool skipRemainingRules) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.AspNetCore.Rewrite.IRule rule) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, int?sslPort) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) { throw null; }
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirect(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement, int statusCode) { throw null; }