Skip to content

Redirects #1

Description

@TechnicallyWeb3

Hey, so I haven't added redirects to our handler yet. As of right now we are calling specific files, so technicallyweb3.eth/index.html will work, but technicallyweb3.eth/ will not. I can use the DEFINE function to set a header for the / path to return a 301 to /index.html but the handler currently only returns the / 301 response.

To do this I would probably do something like this:
Deploy a contract
Write some html to /index.html using PUT
Write 301 & /index.html to / using DEFINE
Add in parameter "redirect" like in the javascript fetch function with values follow (default), manual and error.
Modify fetch function to re-execute the request to the new location.

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