{"id":1055,"date":"2012-08-04T00:52:00","date_gmt":"2012-08-04T00:52:00","guid":{"rendered":"http:\/\/leonardocotta.com.br\/blog\/?p=1055"},"modified":"2012-08-04T00:52:00","modified_gmt":"2012-08-04T00:52:00","slug":"redirect-index-php-to-root","status":"publish","type":"post","link":"https:\/\/leonardocotta.com.br\/?p=1055","title":{"rendered":"Redirect index.php to root"},"content":{"rendered":"<p>Ol\u00e1, dica pra quem quiser reconfigurar o index da pagina no .htacess, para configurar o padr\u00e3o para o &#8220;index.php&#8221; basta usar o codigo abaixo:<\/p>\n<p>&nbsp;<\/p>\n<p>RewriteEngine on<br \/>\nRewriteRule ^index.php$ &#8211; [L]<br \/>\nRewriteCond %{HTTP_HOST} ^nomedominio.com.br$ [OR]<br \/>\nRewriteCond %{HTTP_HOST} ^www.nomedocminio.com.br$<br \/>\nRewriteRule ^\/?$ &#8220;http:\/\/nomedominio.com.br&#8221; [R=301,L]<\/p>\n<p>Options +Indexes<br \/>\nIndexOptions +FancyIndexing<\/p>\n<p>&nbsp;<\/p>\n<p>isso se faz\u00a0necess\u00e1rio\u00a0as vezes quando se registra mais de um\u00a0dom\u00ednio quando ao acessar nao abre na pagina index que em quest\u00e3o \u00e9 a padrao, mas se quiser colocar com outro nome tamb\u00e9m pode..<\/p>\n<p>&nbsp;<\/p>\n<p>segue um link para aprofundar mais.. abs..<\/p>\n<p><a href=\"http:\/\/www.askapache.com\/htaccess\/redirect-index-blog-root.html\">http:\/\/www.askapache.com\/htaccess\/redirect-index-blog-root.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1, dica pra quem quiser reconfigurar o index da pagina no .htacess, para configurar o padr\u00e3o para o &#8220;index.php&#8221; basta usar o codigo abaixo: &nbsp; RewriteEngine on RewriteRule ^index.php$ &#8211; [L] RewriteCond %{HTTP_HOST} ^nomedominio.com.br$ [OR] RewriteCond %{HTTP_HOST} ^www.nomedocminio.com.br$ RewriteRule ^\/?$ &#8220;http:\/\/nomedominio.com.br&#8221; [R=301,L] Options +Indexes IndexOptions +FancyIndexing &nbsp; isso se faz\u00a0necess\u00e1rio\u00a0as vezes quando se registra mais &hellip; <a href=\"https:\/\/leonardocotta.com.br\/?p=1055\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Redirect index.php to root<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[50,20],"tags":[57,144,145],"class_list":["post-1055","post","type-post","status-publish","format-standard","hentry","category-php","category-programacao","tag-htacess","tag-index","tag-index-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1055"}],"version-history":[{"count":0,"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1055\/revisions"}],"wp:attachment":[{"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leonardocotta.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}