ok stop now
This commit is contained in:
@@ -45,6 +45,7 @@ namespace TerribleDev.Blog.Web.Controllers
|
||||
});
|
||||
|
||||
[Route("/")]
|
||||
[Route("/index.html")]
|
||||
[Route("/page/{pageNumber?}" )]
|
||||
public IActionResult Index(int pageNumber = 1)
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace TerribleDev.Blog.Web
|
||||
"public,max-age=" + cacheTime;
|
||||
}
|
||||
});
|
||||
app.UseRewriter(new Microsoft.AspNetCore.Rewrite.RewriteOptions().AddRedirect("(.*[^/|.xml])$", "$1/", 301));
|
||||
app.UseRewriter(new Microsoft.AspNetCore.Rewrite.RewriteOptions().AddRedirect("(.*[^/|.xml|.html])$", "$1/", 301));
|
||||
app.UseOutputCaching();
|
||||
app.UseMvc();
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"name": "The Ramblings of TerribleDev",
|
||||
"scope": "/",
|
||||
"display": "minimal-ui",
|
||||
"start_url": "/",
|
||||
"start_url": "/index.html",
|
||||
"short_name": "Terribl",
|
||||
"theme_color": "#4A4A4A",
|
||||
"background_color": "#FFF",
|
||||
|
||||
Reference in New Issue
Block a user