Hacker News new | past | comments | ask | show | jobs | submit login

why 307 (temporary) and not 308 (permanent)? (curious about this as when I used to work on a ton of company websites and migrate from old sites, there'd always be a big process of setting up a ton of 301 (permanent) redirects)



Sorry, just a typo from the brain. It's a config option - with a few in the 300 series, mostly choosing a permanent option


Ahh cool, I see! All good, was curious if there was some new special technique maybe I hadn't heard about, haha :)


As both the post topic and the parent comment topic are about domain changes, wouldn't that basically direct users of the old site on the domain to a totally different domain when they want to access the new site on the same domain?


It could.. it all depends how the redirects are set up.

You can use 301/308 redirect for either new page/path or new domain, or both. It's pretty flexible. If you're interested to learn more, Google has a pretty good "best practices" page at https://developers.google.com/search/docs/advanced/crawling/...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: