# Hosting your site

With Gridbox, you can host your site to Netlify in a click along with custom domain + free ssl (https) for free.&#x20;

### Hosting your site for the first time

Open the site you've created.

1. From the top right bar - Click on the publish button
2. It will open the dialog with "Login with Netlify" button.
3. &#x20;Login to Netlify Account if you've one or [create a new account.](https://app.netlify.com/signup) \[This step needed is only for the first time ]
4. Once connected, you can see - "Ready to host your website. Please click on publish to proceed"
5. Click on publish&#x20;
6. That's it. You will see the auto generated hosted url.

### Publishing content changes

1. From the top right bar - Click on the publish button
2. It will open the dialog
3. Click on publish changes&#x20;
4. That's it.&#x20;

### Renaming the site url

If you would like to continue with the default netlify url, still you can rename the url.&#x20;

For eg:

random-site-32s4.netlify.app -> your\_name.netlify.app

1. Click on edit.
2. Enter the name you want to rename to&#x20;
3. That's it.&#x20;

![Renaming the site](https://1993588132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgj45dJ-t6Yc2Yz_AG3%2Fuploads%2FhkCWp1E03NBuKV3LrA44%2Fchange-site-name.JPG?alt=media\&token=427c445e-a255-4886-b310-7f7dc01ad729)

### Adding Custom Domain in Netlify&#x20;

![](https://1993588132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgj45dJ-t6Yc2Yz_AG3%2Fuploads%2FFIqxGgjGNPFnu9MaO9dZ%2Fpublish-to-netlify.JPG?alt=media\&token=63995ded-4d15-44d9-a113-44c2dacc0f03)

To add custom domain&#x20;

1. Click on the **custom domain** button
2. This will take you to Netlify Custom Domain Settings

### Mapping your domain&#x20;

1. Follow the instructions given in the screen
2. Create a CNAME record www -> sometitle.netlify.app&#x20;
3. You will see the default Netlify Generatated Subdomain (for eg: <https://somesite.netlify.app>)
4. To add custom domain -> Click on Add custom domain button
5. Then add your domain and click on verify to proceed further&#x20;

Once you're done, allow up to 1 hr for the changes to take effect.&#x20;

![](https://1993588132-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mgj45dJ-t6Yc2Yz_AG3%2F-MgkRLVSx_zRIKOZEv7X%2F-MgkU6qTgId2Q7sLqZAW%2FScreenshot%202021-08-10%20at%2020-02-37%20Domain%20management%20Site%20settings.png?alt=media\&token=1e15cf5e-98b2-4418-b11d-435fd71700e7)

![Domain Verification](https://1993588132-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mgj45dJ-t6Yc2Yz_AG3%2F-MgkRLVSx_zRIKOZEv7X%2F-MgkUGze0X1IgLfUWjpR%2FScreenshot%202021-08-10%20at%2020-03-00%20Add%20a%20custom%20domain%20to%20your%20site%20Netlify.png?alt=media\&token=ff2368a8-2a43-491d-a99b-674800d723b7)

### Further Reading

{% embed url="<https://docs.netlify.com/domains-https/custom-domains/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gridbox.io/deployment/deploy-to-netlify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
