{"id":5158,"date":"2017-11-08T11:15:42","date_gmt":"2017-11-08T13:15:42","guid":{"rendered":"https:\/\/www.intelhost.com.br\/blog\/?p=5158"},"modified":"2021-08-08T11:26:42","modified_gmt":"2021-08-08T13:26:42","slug":"como-criar-um-redirecionamento-de-dominio-com-htaccess","status":"publish","type":"post","link":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/","title":{"rendered":"Como criar um redirecionamento de dom\u00ednio com htaccess"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Existem v\u00e1rias formas de redirecionar os acessos do seu site utilizando o htaccess.<\/h2>\n\n\n\n<p>A id\u00e9ia deste artigo \u00e9 de apenas orientar os usu\u00e1rios com c\u00f3digos prontos, mas \u00e9 de responsabilidade total do usu\u00e1rio desses sistemas testa-los. Qualquer problema referente a eles \u00e9 de total responsabilidade do cliente.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Conhe\u00e7a alguns deles:<\/h3>\n\n\n\n<p>Redirecionando o dom\u00ednio principal da conta:<\/p>\n\n\n\n<p><strong><code>RedirectMatch ^\/$ http:\/\/dominio.com.br\/diretorio<\/code><\/strong><br>Redireciona <code>www.dominio.com.br<\/code> para <code>www.dominio.com.br\/loja<\/code><\/p>\n\n\n\n<p><strong>Redirect 301 \/pagina.html http:\/\/www.seudominio.com.br\/novapagina.html<\/strong><br>Redireciona o acesso ao arquivo \u201cpagina.html\u201d para \u201chttp:\/\/www.seudominio.com.br\/novapagina.html\u201d<\/p>\n\n\n\n<p><strong>Redirect 301 \/ http:\/\/www.dominio.com.br\/<\/strong><br>Redireciona o acesso de sua conta para o endere\u00e7o \u201chttp:\/\/www.dominio.com.br\/\u201d<\/p>\n\n\n\n<p><strong>RedirectMatch 301 (.*)\\.html$ http:\/\/www.seudominio.com.br$1.php<\/strong><\/p>\n\n\n\n<p>Caso voc\u00ea tenha mudado todos os seus arquivos de extens\u00e3o \u201c.html\u201d para \u201c.php\u201d e tenha links antigos com refer\u00eancias para os \u201c.html\u201d, voc\u00ea pode evitar que o usu\u00e1rio acesse uma p\u00e1gina que n\u00e3o existe mais com essa linha; Ela redireciona qualquer acesso a um \u201c.html\u201d substituindo \u201c.html\u201d para \u201c.php\u201d.<\/p>\n\n\n\n<p><strong>Options +FollowSymLinks<\/strong><br><strong>RewriteEngine on<\/strong><br><strong>RewriteCond %{HTTP_HOST} .<\/strong><br><strong>RewriteCond %{HTTP_HOST} !^seusite\\.com\\.br<\/strong><br><strong>RewriteRule (.*) http:\/\/seusite.com.br\/$1 [R=301,L]<br><\/strong><\/p>\n\n\n\n<p>Remove o \u201cwww\u201d do endere\u00e7o de acesso, isto \u00e9, redireciona quem acessou pelo endere\u00e7o \u201cwww.seusite.com.br\u201d para \u201cseusite.com.br\u201d; Isso \u00e9 bom para padronizar o acesso ao seu site e ajuda na indexa\u00e7\u00e3o dos buscadores, fazendo-os indexar apenas links sem \u201cwww\u201d.<\/p>\n\n\n\n<p>Para alterar a linha 4 (dom\u00ednio, no exemplo seusite\\.com\\.br), adicione \u201c\\\u201d antes de cada \u201c.\u201d, assim o \u201c.\u201d ser\u00e1 interpretado como ponto e n\u00e3o parte de uma express\u00e3o regular.<\/p>\n\n\n\n<p>Exemplo: mudando seusite.com.br para meusite.net.br.teste.exemplo (supondo que exista este dom\u00ednio): RewriteCond %{HTTP_HOST} !^meusite\\.net\\.br\\.teste\\.exemplo<\/p>\n\n\n\n<p><strong>Options +FollowSymLinks<\/strong><br><strong>RewriteEngine on<\/strong><br><strong>RewriteCond %{HTTP_HOST} ^seusite.com.br [NC]<\/strong><br><strong>RewriteRule ^(.*)$ http:\/\/www.seusite.com.br\/$1 [L,R=301]<\/strong><\/p>\n\n\n\n<p><strong><br><\/strong><br>Adiciona \u201cwww\u201d ao endere\u00e7o acessado sem o \u201cwww\u201d. A id\u00e9ia de padronizar surge da mesma id\u00e9ia do c\u00f3digo anterior a esse.<\/p>\n\n\n\n<p><strong>Options +FollowSymLinks<\/strong><br><strong>RewriteEngine on<\/strong><br><strong>RewriteCond %{THE_REQUEST} ^[A-Z]{3, 9}\\ \/.*index\\.php\\ HTTP\/<\/strong><br><strong>RewriteRule ^(.*)index\\.php$ \/$1 [R=301,L]<br><\/strong><\/p>\n\n\n\n<p>Esconde o acesso ao arquivo \u201c.index.php\u201d para \u201c\/\u201d.<\/p>\n\n\n\n<p>Exemplos: www.dominio.com.br\/index.php &gt; www.dominio.com.br; www.meusite.com.br\/teste\/index.php &gt; www.meusite.com.br\/teste\/<\/p>\n\n\n\n<p><strong>DirectoryIndex paginainicial.php<\/strong><\/p>\n\n\n\n<p>Se colocado em um determinado diret\u00f3rio, faz com que ao acessarem aquele diret\u00f3rio, ao inv\u00e9s do servidor enviar o acesso a um arquivo do tipo \u201cindex\u201d, como \u00e9 o padr\u00e3o, ele envia para \u201cpaginainicial.php\u201d, como se redefinisse o nome do arquivo \u201cindex.php\u201d.<\/p>\n\n\n\n<p><strong>RewriteEngine On<\/strong><br><strong>RewriteCond %{SERVER_PORT} 80<\/strong><br><strong>RewriteRule ^(.*)$ https:\/\/www.meusiteseguro.com.br\/$1 [R,L]<\/strong><\/p>\n\n\n\n<p><strong><br><\/strong><br>Reenvia o acesso ao seu site feito atrav\u00e9s do \u201chttp\u201d para o \u201chttps\u201d.<\/p>\n\n\n\n<p>Por exemplo: http:\/\/www.dominio.com.br &gt; https:\/\/www.dominio.com.br\/<\/p>\n\n\n\n<p><strong>Redirecionar para Pasta<\/strong><\/p>\n\n\n\n<p>RewriteEngine on<br>RewriteCond %{HTTP_HOST} ^seu-dominio.com$ [NC,OR]<br>RewriteCond %{HTTP_HOST} ^www.seu-dominio.com$<br>RewriteCond %{REQUEST_URI} !pasta\/<br>RewriteRule (.*) \/pasta\/$1 [L]<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nas linhas acima, deve-se substituir o seguinte:<\/h3>\n\n\n\n<p><strong>seu-dominio.com \u2013<\/strong>&nbsp;Escreva o seu pr\u00f3prio nome de dom\u00ednio<br><strong>pasta \u2013<\/strong>&nbsp;Escreva o nome da sub-pasta onde est\u00e1 o seu site<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Existem v\u00e1rias formas de redirecionar os acessos do seu site utilizando o htaccess. A id\u00e9ia deste artigo \u00e9 de apenas orientar os usu\u00e1rios com c\u00f3digos prontos, mas \u00e9 de responsabilidade total do usu\u00e1rio desses sistemas testa-los. Qualquer problema referente a eles \u00e9 de total responsabilidade do cliente. Conhe\u00e7a alguns deles: Redirecionando o dom\u00ednio principal da [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2,4,5],"tags":[13],"class_list":["post-5158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hospedagem-de-sites","category-revenda-hospedagem-de-sites","category-seguranca-para-hospedagem-de-sites","tag-htaccess"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Como criar um redirecionamento de dom\u00ednio com htaccess - Reselhost<\/title>\n<meta name=\"description\" content=\"Como criar um redirecionamento de dom\u00ednio com htaccess Revenda de Hospedagem de Sites Ilimitada cPanel com WHMCS Gr\u00e1tis Construtor de Sites.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como criar um redirecionamento de dom\u00ednio com htaccess - Reselhost\" \/>\n<meta property=\"og:description\" content=\"Como criar um redirecionamento de dom\u00ednio com htaccess Revenda de Hospedagem de Sites Ilimitada cPanel com WHMCS Gr\u00e1tis Construtor de Sites.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Reselhost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/reselhost\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-08T13:15:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-08T13:26:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"520\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"intelhost\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@reselhost\" \/>\n<meta name=\"twitter:site\" content=\"@reselhost\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"intelhost\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\"},\"author\":{\"name\":\"intelhost\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#\/schema\/person\/88221414211212d30640075632ff6560\"},\"headline\":\"Como criar um redirecionamento de dom\u00ednio com htaccess\",\"datePublished\":\"2017-11-08T13:15:42+00:00\",\"dateModified\":\"2021-08-08T13:26:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\"},\"wordCount\":537,\"publisher\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png\",\"keywords\":[\"htaccess\"],\"articleSection\":[\"Hospedagem de Sites\",\"Revenda Hospedagem\",\"Seguran\u00e7a\"],\"inLanguage\":\"pt-BR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\",\"url\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\",\"name\":\"Como criar um redirecionamento de dom\u00ednio com htaccess - Reselhost\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png\",\"datePublished\":\"2017-11-08T13:15:42+00:00\",\"dateModified\":\"2021-08-08T13:26:42+00:00\",\"description\":\"Como criar um redirecionamento de dom\u00ednio com htaccess Revenda de Hospedagem de Sites Ilimitada cPanel com WHMCS Gr\u00e1tis Construtor de Sites.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage\",\"url\":\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png\",\"contentUrl\":\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png\",\"width\":900,\"height\":520,\"caption\":\"htaccess\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.reselhost.pt\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como criar um redirecionamento de dom\u00ednio com htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#website\",\"url\":\"https:\/\/www.reselhost.pt\/blog\/\",\"name\":\"Reselhost\",\"description\":\"Blog Hospedagem de Sites e Revenda de Hospedagem com 50% de Desconto\",\"publisher\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.reselhost.pt\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#organization\",\"name\":\"Reselhost LLC\",\"url\":\"https:\/\/www.reselhost.pt\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg\",\"contentUrl\":\"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg\",\"width\":500,\"height\":500,\"caption\":\"Reselhost LLC\"},\"image\":{\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/reselhost\",\"https:\/\/x.com\/reselhost\",\"https:\/\/www.instagram.com\/reselhost\",\"https:\/\/www.linkedin.com\/in\/reselhost\",\"https:\/\/www.youtube.com\/@reselhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.reselhost.pt\/blog\/#\/schema\/person\/88221414211212d30640075632ff6560\",\"name\":\"intelhost\",\"sameAs\":[\"https:\/\/www.intelhost.net.br\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como criar um redirecionamento de dom\u00ednio com htaccess - Reselhost","description":"Como criar um redirecionamento de dom\u00ednio com htaccess Revenda de Hospedagem de Sites Ilimitada cPanel com WHMCS Gr\u00e1tis Construtor de Sites.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/","og_locale":"pt_BR","og_type":"article","og_title":"Como criar um redirecionamento de dom\u00ednio com htaccess - Reselhost","og_description":"Como criar um redirecionamento de dom\u00ednio com htaccess Revenda de Hospedagem de Sites Ilimitada cPanel com WHMCS Gr\u00e1tis Construtor de Sites.","og_url":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/","og_site_name":"Reselhost","article_publisher":"https:\/\/www.facebook.com\/reselhost","article_published_time":"2017-11-08T13:15:42+00:00","article_modified_time":"2021-08-08T13:26:42+00:00","og_image":[{"width":900,"height":520,"url":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png","type":"image\/png"}],"author":"intelhost","twitter_card":"summary_large_image","twitter_creator":"@reselhost","twitter_site":"@reselhost","twitter_misc":{"Escrito por":"intelhost","Est. tempo de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#article","isPartOf":{"@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/"},"author":{"name":"intelhost","@id":"https:\/\/www.reselhost.pt\/blog\/#\/schema\/person\/88221414211212d30640075632ff6560"},"headline":"Como criar um redirecionamento de dom\u00ednio com htaccess","datePublished":"2017-11-08T13:15:42+00:00","dateModified":"2021-08-08T13:26:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/"},"wordCount":537,"publisher":{"@id":"https:\/\/www.reselhost.pt\/blog\/#organization"},"image":{"@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png","keywords":["htaccess"],"articleSection":["Hospedagem de Sites","Revenda Hospedagem","Seguran\u00e7a"],"inLanguage":"pt-BR"},{"@type":"WebPage","@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/","url":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/","name":"Como criar um redirecionamento de dom\u00ednio com htaccess - Reselhost","isPartOf":{"@id":"https:\/\/www.reselhost.pt\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png","datePublished":"2017-11-08T13:15:42+00:00","dateModified":"2021-08-08T13:26:42+00:00","description":"Como criar um redirecionamento de dom\u00ednio com htaccess Revenda de Hospedagem de Sites Ilimitada cPanel com WHMCS Gr\u00e1tis Construtor de Sites.","breadcrumb":{"@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#primaryimage","url":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png","contentUrl":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png","width":900,"height":520,"caption":"htaccess"},{"@type":"BreadcrumbList","@id":"https:\/\/www.reselhost.pt\/blog\/como-criar-um-redirecionamento-de-dominio-com-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.reselhost.pt\/blog\/"},{"@type":"ListItem","position":2,"name":"Como criar um redirecionamento de dom\u00ednio com htaccess"}]},{"@type":"WebSite","@id":"https:\/\/www.reselhost.pt\/blog\/#website","url":"https:\/\/www.reselhost.pt\/blog\/","name":"Reselhost","description":"Blog Hospedagem de Sites e Revenda de Hospedagem com 50% de Desconto","publisher":{"@id":"https:\/\/www.reselhost.pt\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.reselhost.pt\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.reselhost.pt\/blog\/#organization","name":"Reselhost LLC","url":"https:\/\/www.reselhost.pt\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.reselhost.pt\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg","contentUrl":"https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg","width":500,"height":500,"caption":"Reselhost LLC"},"image":{"@id":"https:\/\/www.reselhost.pt\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/reselhost","https:\/\/x.com\/reselhost","https:\/\/www.instagram.com\/reselhost","https:\/\/www.linkedin.com\/in\/reselhost","https:\/\/www.youtube.com\/@reselhost"]},{"@type":"Person","@id":"https:\/\/www.reselhost.pt\/blog\/#\/schema\/person\/88221414211212d30640075632ff6560","name":"intelhost","sameAs":["https:\/\/www.intelhost.net.br\/blog"]}]}},"uagb_featured_image_src":{"full":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png",900,520,false],"thumbnail":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess-150x150.png",150,150,true],"medium":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess-300x173.png",300,173,true],"medium_large":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess-768x444.png",768,444,true],"large":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png",900,520,false],"1536x1536":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png",900,520,false],"2048x2048":["https:\/\/www.reselhost.pt\/blog\/wp-content\/uploads\/2017\/11\/htaccess.png",900,520,false]},"uagb_author_info":{"display_name":"intelhost","author_link":"https:\/\/www.reselhost.pt\/blog\/author\/intelhost\/"},"uagb_comment_info":0,"uagb_excerpt":"Existem v\u00e1rias formas de redirecionar os acessos do seu site utilizando o htaccess. A id\u00e9ia deste artigo \u00e9 de apenas orientar os usu\u00e1rios com c\u00f3digos prontos, mas \u00e9 de responsabilidade total do usu\u00e1rio desses sistemas testa-los. Qualquer problema referente a eles \u00e9 de total responsabilidade do cliente. Conhe\u00e7a alguns deles: Redirecionando o dom\u00ednio principal da&hellip;","_links":{"self":[{"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/posts\/5158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/comments?post=5158"}],"version-history":[{"count":0,"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/posts\/5158\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/media\/5159"}],"wp:attachment":[{"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/media?parent=5158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/categories?post=5158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reselhost.pt\/blog\/wp-json\/wp\/v2\/tags?post=5158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}