Closed tbille closed 4 years ago
Redirect tutorials.ubuntu.com -> ubuntu.com/tutorials
./qa-deploy staging sites/ubuntu.com.yaml latest
curl -I -H 'Host: tutorials.ubuntu.com' http://127.0.0.1/
curl -I -H 'Host: tutorials.ubuntu.com/tutorial/asdf' http://127.0.0.1/
curl -I -H 'Host: tutorials.ubuntu.com/tutorial/asdf#1' http://127.0.0.1/
@tbille The QA steps are not good because the path like /tutorial/asdf shouldn't be in the header.
/tutorial/asdf
But the redirection is working as expected!
Summary
Redirect tutorials.ubuntu.com -> ubuntu.com/tutorials
QA
./qa-deploy staging sites/ubuntu.com.yaml latest
curl -I -H 'Host: tutorials.ubuntu.com' http://127.0.0.1/
curl -I -H 'Host: tutorials.ubuntu.com/tutorial/asdf' http://127.0.0.1/
curl -I -H 'Host: tutorials.ubuntu.com/tutorial/asdf#1' http://127.0.0.1/