CDCgov / prime-devops

Apache License 2.0
4 stars 2 forks source link

Add mecahnism for static site to add 301 redirects #44

Open timbest-cdc opened 3 years ago

timbest-cdc commented 3 years ago

Is your feature request related to a problem? Please describe. Currently the static site uses jekyll-redirect to handle URL changes and page moves. For our setup this plugin works be serving the old page and then exicuting some java script to redirect the user to the new page. In the network tab this is seen as a 200 from the first page and a 200 from the second`jekyll-redirect. It is my (Tim Best) understanding that it is better for the user and SEO if the first page serves a 301

Describe the solution you'd like There is a setting whin jekyll-redirect where redirects can be added to a .htaccess file for an apache server to serve a 301 instead of two 200. It would be ideal if there was a similar mechanism for azure storage accounts

Describe alternatives you've considered None

Additional context None