Giter Club home page Giter Club logo

git-dot-io's Introduction

The documentation is not up to date.

To add a new redirect, you need to add it on data/redirect.json




Redirect to your websites using git.io

Why?

Git.io is a URL shortening service that will redirect to your Github projects. If you try to redirect to other domain out of Github.com (like your website) you won't be able to do it.

So this project will help you redirect to any website using git.io super easy!

How to do it?

not-found

  • Go to _redirects.

  • Create an .html file with the name of the link you want to make.

  • Inside the file you need to copy the code below and paste it on you file, change it with you content.

---
permalink: /your-beautiful-link
destination: http://your-beautiful-site.com
---

So is that all?

No!

Now you can go to Git.io and copy gitdotio.github.io/your-beautiful-link and paste your link there and when you are done, you will have a git.io/random-name that will be redirected to your-beautiful-site.com.

Cons:

The Git.io website will only offer random short URLs.

So what if I want a mycool-name?

Well to have your custom vanity URL with git.io you will need to use your command line.

$ curl -i https://git.io -F "url=https://gitdotio.github.io/your-beautiful-link" -F "code=mycool-name"

where you will need to set the url= parameter with the link created by gitdotio.github.io and code= with the value you'd like to set.

At this point when you type git.io/mycool-name that will be redirected to your-beautiful-site.com

Note ⚠️

Websites won't be checked, but keep in mind to don't redirect to any abusive, racist or sexist website.

To use this service since it's owned by Github, Inc you will need to agree with the following:

Who to follow?

Carlos Abraham Logo
Abraham Hernandez

License

The UNLICENSE

git-dot-io's People

Contributors

abranhe avatar alinmigea avatar ananthavijay avatar bharrod321 avatar boudhayan-dev-sap avatar braunson avatar carlittoo7 avatar chetan-hireholi avatar dariluka avatar deemullins avatar denisolvr avatar dr-wolf-ml avatar eduard-caraiman avatar ericmshen avatar farukx avatar gabrielcaballero avatar izamglima avatar jacobproffer avatar jilloestreicher avatar julioalfian avatar lordyamoshi avatar marychew97 avatar megarpie avatar mieju avatar papuruth avatar ramkrishn123 avatar sooryanarayananb avatar sunpech avatar the-coder-dude avatar xarnze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

git-dot-io's Issues

Can't use '/' in the url

I want to use '/' in the "code",like this:
curl -i https://git.io -F "url=https://lucy2003.github.io" -F "code=lucy2003/mainpage"
It returned like this:
Location: https://git.io/lucy2003/mainpage
But when I view it ,it returned 404 Not Found.

How can I do that? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.