generated from deco-sites/start
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
how to redirect domain without www (#232)
* format * fix title
- Loading branch information
Showing
35 changed files
with
332 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default, Preview } from "apps/decohub/mod.ts"; | ||
export { default, Preview } from "apps/decohub/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Head, asset } from "$fresh/runtime.ts"; | ||
import { asset, Head } from "$fresh/runtime.ts"; | ||
import { useEffect, useRef } from "preact/hooks"; | ||
import docsearch from "https://esm.sh/@docsearch/[email protected]?target=es2020"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
description: How to Redirect a Non-www Domain | ||
since: 1.1.0 | ||
--- | ||
|
||
## What is an Apex Domain? | ||
|
||
An apex domain is the term used for a root domain, without a subdomain. | ||
|
||
Example: | ||
|
||
- `www.example.com.br` -> Subdomain | ||
- `loja.example.com.br` -> Subdomain | ||
- `example.com.br` - Apex Domain | ||
|
||
## Can I point a deco.cx site to the apex domain? | ||
|
||
No, it is not yet possible to point a deco.cx site to your apex domain. | ||
|
||
Therefore, we have created an easy redirection solution so that access to the | ||
Apex domain is not lost. | ||
|
||
## How to Redirect an Apex Domain in deco.cx? | ||
|
||
1 - In the control panel of your site on deco.cx, go to the Settings page. | ||
|
||
2 - Click on "Add existing domain" | ||
|
||
3 - Enter your apex domain (without subdomain): | ||
|
||
![Domain step](https://github.com/deco-cx/apps/assets/76620866/85b1bcd5-5dec-4a61-bb0b-635e0b8a3d3a) | ||
|
||
4 - Define which subdomain to redirect to: | ||
|
||
![Sudomain step](https://github.com/deco-cx/apps/assets/76620866/ab92d6cb-ef08-4f98-a0e5-b241f932722d) | ||
|
||
5 - Now, you will see the settings that must be made in your domain hosting | ||
platform: | ||
|
||
![DNS Setup](https://github.com/deco-cx/apps/assets/76620866/ff13f321-58b2-4cc7-9015-5738dd31b849) | ||
|
||
6 - After making the configurations, click on Validate Domain. | ||
|
||
The validation step is essential for functionality and depends on the DNS | ||
propagation set up in the hosting service. | ||
|
||
Generally, propagation occurs within a few hours, but it can take up to 48 hours | ||
in some cases. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
description: Como redirecionar domínio sem www | ||
since: 1.1.0 | ||
--- | ||
|
||
## O que é domínio apex? | ||
|
||
Domínio apex é o termo utilizado para domínio raiz, sem subdomínio. | ||
|
||
Exemplo: | ||
|
||
- `www.example.com.br` -> Subdomínio | ||
- `loja.example.com.br` -> Subdomínio | ||
- `example.com.br` - Domínio Apex | ||
|
||
## Posso apontar um site deco.cx para o domínio apex? | ||
|
||
Não, ainda não é possível apontar um site deco.cx para o seu domínio apex. | ||
|
||
Por isso, criamos uma solução fácil de redirecionamento, para que os acessos ao | ||
domínio Apex não sejam perdidos. | ||
|
||
## Como redirecionar um domínio apex na deco.cx? | ||
|
||
1 - No painel do seu site na deco.cx, acesse a página de Configurações. | ||
|
||
2 - Clique em "Adicionar domínio existente" | ||
|
||
3 - Insira o seu domínio apex (sem subdomínio): | ||
|
||
![Domain step](https://github.com/deco-cx/apps/assets/76620866/85b1bcd5-5dec-4a61-bb0b-635e0b8a3d3a) | ||
|
||
4 - Defina para qual subdomínio redirecionar: | ||
|
||
![Sudomain step](https://github.com/deco-cx/apps/assets/76620866/ab92d6cb-ef08-4f98-a0e5-b241f932722d) | ||
|
||
5 - Agora, você verá os apontamentos que devem ser feitos na sua plataforma de | ||
hospedagem de domínio: | ||
|
||
![DNS Setup](https://github.com/deco-cx/apps/assets/76620866/ff13f321-58b2-4cc7-9015-5738dd31b849) | ||
|
||
6 - Após realizar as configurações, clique em Validar Domínio. | ||
|
||
A etapa de validação é essencial para o funcionamento e ela depende da | ||
propagação do DNS configurado no serviço de hospedagem. | ||
|
||
No geral, a propagação ocorre dentro algumas horas, mas pode levar até 48 horas | ||
em alguns casos. |
Oops, something went wrong.