Skip to content

HTTP Status Code 301 #6

Description

@freeman-g

@adamar I followed your great example, thanks it was a big help.

FYI - I noticed one issue with using HTTP Status Code 301. In certain cases my browser would no longer hit the originally requested URL, I assume due to the code 301, "Moved Permanently".

So I started using 302 instead, like this:

http.Redirect(w, req, "/login", 302)

Thanks again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions