7 |

8 |
9 |
10 |
11 |
Redirect to your websites using git.io
12 |
13 |
14 | ## Why?
15 |
16 | [**Git.io**](https://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.
17 |
18 | So [this project](https://github.com/gitdotio/gitdotio.github.io) will help you redirect to any website using **git.io** super easy!
19 |
20 | ## How to do it?
21 |
22 | - Check if [git.io/YOUR-BEAUTIFUL-LINK](https://git.io/your-beautiful-link) is avilable.
23 |
24 | 
25 |
26 | - Go to **[_redirects](_redirects)**.
27 | - Create an **.html** file with the name of the link you want to make.
28 |
29 | - Inside the file you need to copy the code below and paste it on you file, change it with you content.
30 |
31 | ``` html
32 | ---
33 | permalink: /your-beautiful-link
34 | destination: http://your-beautiful-site.com
35 | ---
36 | ```
37 |
38 | ### So is that all?
39 |
40 | > No!
41 |
42 | Now you can go to [**Git.io**](https://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`.
43 |
44 | **Cons**:
45 |
46 | The [**Git.io**](https://git.io) website will only offer random short URLs.
47 |
48 | ## So what if I want a `mycool-name`?
49 |
50 | Well to have your custom vanity URL with **git.io** you will need to use your command line.
51 |
52 | ```console
53 | $ curl -i https://git.io -F "url=https://gitdotio.github.io/your-beautiful-link" -F "code=mycool-name"
54 | ```
55 |
56 | 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.
57 |
58 | At this point when you type `git.io/mycool-name` that will be redirected to `your-beautiful-site.com`
59 |
60 |
61 | ## Note ⚠️
62 |
63 | Websites won't be checked, but keep in mind to don't redirect to any abusive, racist or sexist website.
64 |
65 | To use this service since it's owned by **Github, Inc** you will need to agree with the following:
66 |
67 | - [x] Github's [Term and conditions](https://github.com/site/terms)
68 | - [x] Github's [Privacy](https://github.com/site/privacy)
69 | - [x] Github's [Security Terms](https://github.com/security)
70 |
71 | ## Who to follow?
72 |
73 | |[](https://github.com/abranhe)|
74 | | :-: |
75 | | [Abraham Hernandez](https://github.com/abranhe) |
76 |
77 | ## License
78 |
79 | [The UNLICENSE](https://github.com/gitdotio/gitdotio.github.com/blob/master/license)
80 |
81 |
82 |