{"id":23954,"date":"2021-01-13T11:05:11","date_gmt":"2021-01-13T14:05:11","guid":{"rendered":"http:\/\/ajuda.locaweb.com.br\/?post_type=ht_kb&#038;p=23954"},"modified":"2023-07-25T14:45:36","modified_gmt":"2023-07-25T17:45:36","slug":"como-redirecionar-um-subdominio-para-uma-pasta-hospedagem-dedicada","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-redirecionar-um-subdominio-para-uma-pasta-hospedagem-dedicada\/","title":{"rendered":"Como redirecionar um subdom\u00ednio para uma pasta &#8211; Hospedagem Dedicada"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tA informa\u00e7\u00e3o contida abaixo diz respeito ao ambiente Linux, sendo um exemplo que busca auxiliar no redirecionamento de um subdom\u00ednio para uma pasta espec\u00edfica no mesmo servidor. D\u00favidas quanto a utiliza\u00e7\u00e3o ou sobre o script em quest\u00e3o verificar junto a um desenvolvedor de sua confian\u00e7a..    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6>Veja o passo a passo<\/h6>\n<p><strong>01 |<\/strong> Acesse o site da <a href=\"https:\/\/www.locaweb.com.br\/\">Locaweb<\/a>, clique em Central do cliente, informe usu\u00e1rio e senha .<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23977\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki.png\" alt=\"\" width=\"1195\" height=\"152\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki.png 1195w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki-300x38.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki-1024x130.png 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki-768x98.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki-50x6.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki-60x8.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img1-wiki-100x13.png 100w\" sizes=\"auto, (max-width: 1195px) 100vw, 1195px\" \/><\/p>\n<p><strong>02 | <\/strong>Clique no \u00edcone do produto de Hospedagem Dedicada.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23978\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img2-wiki.png\" alt=\"\" width=\"731\" height=\"241\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img2-wiki.png 731w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img2-wiki-300x99.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img2-wiki-50x16.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img2-wiki-60x20.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2021\/01\/img2-wiki-100x33.png 100w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p><strong>03 |\u00a0<\/strong>Ao acessar, siga at\u00e9 o gerenciador de dom\u00ednios do site em quest\u00e3o, conforme exemplo abaixo voc\u00ea pode acessar de duas formas.<\/p>\n<p><strong>Pelo menu lateral do dom\u00ednio.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31011\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image.png\" alt=\"\" width=\"600\" height=\"162\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image.png 600w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-300x81.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-50x14.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-60x16.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-100x27.png 100w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>Ou pelo card em administrar:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31012\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-3.png\" alt=\"\" width=\"600\" height=\"588\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-3.png 600w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-3-300x294.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-3-50x50.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-3-60x60.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-3-100x98.png 100w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>04 |\u00a0<\/strong>Clique em <strong>Novo Dom\u00ednio.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31013\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-5.png\" alt=\"\" width=\"600\" height=\"43\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-5.png 600w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-5-300x22.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-5-50x4.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-5-60x4.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-5-100x7.png 100w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>05 |\u00a0<\/strong>Insira o <strong>URL do subdom\u00ednio desejado<\/strong>, escolha <strong>apontamento<\/strong> e ap\u00f3s isso clique em <strong>Adicionar dom\u00ednio<\/strong>. Aguarde o processo de ativa\u00e7\u00e3o.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31014\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-6.png\" alt=\"\" width=\"600\" height=\"264\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-6.png 600w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-6-300x132.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-6-50x22.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-6-60x26.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2023\/03\/MicrosoftTeams-image-6-100x44.png 100w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong> 06 |\u00a0 <\/strong>Com seus <a href=\"https:\/\/ajuda.locaweb.com.br\/wiki\/dados-de-acesso-ao-ftp-hospedagem-de-sites\/\" target=\"_blank\" rel=\"noopener noreferrer\">dados de acesso ao FTP <\/a>acesse seu servidor utilizando um <em>client <\/em><a href=\"https:\/\/ajuda.locaweb.com.br\/wiki\/como-se-conectar-ao-servidor-via-ssh\/\" target=\"_blank\" rel=\"noopener\">SSH<\/a> de sua prefer\u00eancia.<\/p>\n<p><strong>07 | <\/strong>Na ra\u00edz de sua hospedagem, caso n\u00e3o exista, crie um arquivo .htaccess.<\/p>\n<p>Dentro dele insira o c\u00f3digo abaixo:<\/p>\n<pre style=\"text-align: left;\"><strong>Options +FollowSymLinks<\/strong>\r\n<strong>RewriteEngine on<\/strong>\r\n<strong>RewriteCond %{HTTP_HOST} subdominio.meudominio.com [NC]<\/strong>\r\n<strong>RewriteRule ^(.*)$ http:\/\/www.meudominio.com\/pasta\/$1 [L,NC,QSA]<\/strong><\/pre>\n    \t\t<div class=\"hts-messages hts-messages--danger   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tLembre-se de ter o subdom\u00ednio adicionado como um dominio adicional do principal.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Conhe\u00e7a!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAproveite e conhe\u00e7a outros produtos da Locaweb, como o SSL Locaweb, <a href=\"https:\/\/www.locaweb.com.br\/ssl-locaweb\/\" target=\"_blank\" rel=\"noopener noreferrer\">clique aqui<\/a> e saiba mais!    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Veja o passo a passo 01 | Acesse o site da Locaweb, clique em Central do cliente, informe usu\u00e1rio e senha . 02 | Clique no \u00edcone do produto de Hospedagem Dedicada. 03 |\u00a0Ao acessar, siga at\u00e9 o gerenciador de dom\u00ednios do site em quest\u00e3o, conforme exemplo abaixo voc\u00ea pode&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[583],"ht-kb-tag":[],"class_list":["post-23954","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hospedagem-dedicada"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/23954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=23954"}],"version-history":[{"count":15,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/23954\/revisions"}],"predecessor-version":[{"id":32909,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/23954\/revisions\/32909"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=23954"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=23954"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=23954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}