Redirect your .glitch.me subdomains!

Hi everyone, today we’re rolling out one more feature to help you with moving your projects off Glitch and to a new home: redirects!

Once this feature goes live, you should be able to navigate to your Dashboard and see a new button in the list of actions you can take on your project. Pressing the button will bring up a dialog that will allow you to specify a URL you want projects’ *.glitch.me subdomain to redirect to. You can return to the dashboard and change the URL any time you want if you change your mind. Want to stop redirecting? Just hit “Save” after emptying the URL field and it should return to the existing behavior.

A few things you should know:

  1. These redirects are being performed via Fastly’s edge network, so they should be pretty fast worldwide and transparent to web browser users. Because we have to sync the configuration to this network, there may be a slight delay between when you create or change a redirect’s configuration and when it takes effect. Archived and suspended projects should in most cases stop redirecting, but if you notice any issues, please contact support@glitch.com with as much detail as possible.

  2. The redirects work via an HTTP 308 response that directs visitors to the URL you’ve specified. The main goal of this feature is to help your web-based projects that may have human visitors who have your project bookmarked or click on historical links they find. Some systems that send automated requests to your project may not respect that, which means that this feature is unlikely to help with a significant number of projects that are communicating with other APIs or webhooks platforms.

  3. If you include a query string in the URL that you set for the project, it will retain that. This might be useful if you have an analytics script running on your site that tracks visitors via special parameters, or even just setting some simple pair like ?from=glitch and then adding some javascript to your site that detects that and adds a welcome banner or some other behavior.

  4. The feature is being rolled out at first via our third-party feature-flagging platform, so if you look on your dashboard and don’t see the buttons in the first screenshot above, you may need to disable or adjust the settings of your adblocker/JS blocker/etc for the glitch.com domain. Still having trouble despite that? Once we’ve established that everything’s working the way we expect it to, we will remove the feature flag and just make the feature available without the flag, so sit tight and you’ll have access before too long.

  5. Once you establish a redirect, it’s not possible for requests to be routed to the actual project that would be hosted on Glitch’s own project hosting platform. You can still open a project in the editor in order to access its source code and perform actions like downloading, getting the Git URL, or exporting to GitHub until our project hosting shutdown date, but due to our editor’s security settings you won’t be able to see the redirected site in the editor’s preview pane.

  6. We’re able to provide this feature in an effort to help good-faith users of the platform. Please use this tool for actual migration efforts from your project to another website you own. It doesn’t have to be exactly the same as it was before–if you want all your project subdomains to redirect to one personal homepage or portfolio, that’s totally fine! We do retain the rights under the terms of service of the platform to remove redirects and/or suspend projects if we see behavior that we think is trying to mislead people or cause harm to others. As always, suspensions can be appealed privately via support@glitch.com.

We’ll get this information mirrored to the Help Center in the coming days, but wanted to share this feature with you here ASAP after getting all the pieces in place and testing it out ourselves.

Have any general questions, or want to share some clever tricks you’ve set up with detecting redirected users and encouraging them to update their bookmarks, welcoming them to a new home with fun animations, etc? Feel free to speak up here in this thread! For trouble related to individual projects and your own personal information, please send an email to support@glitch.com.

8 Likes