srobo / infrastructure

Obsolete. Provisions the base infrastructure in DigitalOcean
MIT License
0 stars 0 forks source link

Fix redirects which add trailing slashes #7

Closed PeterJCLaw closed 2 years ago

PeterJCLaw commented 5 years ago

This is a repeat of https://github.com/srobo/website/issues/52 which I previously fixed by modifying the nginx config to maintain its façade even for redirects.

$ curl -I https://studentrobotics.org/docs/programming/sr/vision  | grep -P '(HTTP|Location)'
HTTP/1.1 301 Moved Permanently
Location: https://srobo.github.io/docs/programming/sr/vision/

This happens on both the www. prefixed domain and the root.

PeterJCLaw commented 2 years ago

This appears to be working now.