ok stop now

This commit is contained in:
Tommy Parnell
2019-01-21 01:30:54 -05:00
parent b96fae67b1
commit 116389e3da
3 changed files with 3 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ namespace TerribleDev.Blog.Web.Controllers
});
[Route("/")]
[Route("/index.html")]
[Route("/page/{pageNumber?}" )]
public IActionResult Index(int pageNumber = 1)
{

View File

@@ -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();
}

View File

@@ -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",