{"id":61459,"date":"2024-02-13T07:32:44","date_gmt":"2024-02-13T12:32:44","guid":{"rendered":"https:\/\/memberpress.com\/docs\/understanding-rewrite-rules\/"},"modified":"2024-12-02T11:44:14","modified_gmt":"2024-12-02T16:44:14","slug":"understanding-rewrite-rules","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/","title":{"rendered":"Entendendo as regras de reescrita para prote\u00e7\u00e3o de arquivos"},"content":{"rendered":"<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">Embora essas instru\u00e7\u00f5es ainda sejam v\u00e1lidas, desde ent\u00e3o lan\u00e7amos o complemento de downloads MemberPress, portanto, se voc\u00ea n\u00e3o conseguir fazer com que a prote\u00e7\u00e3o de arquivos funcione com o seu servidor da Web, pode dar uma olhada nele.<br><a href=\"https:\/\/memberpress.com\/pt\/docs\/mp-downloads-add-on\/\">Clique aqui para ler mais sobre o assunto<\/a>.<br>\t<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>MemberPress<\/em> usa algumas regras avan\u00e7adas de reescrita do Apache para proteger arquivos n\u00e3o controlados diretamente pelo WordPress.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Quando suas regras de reescrita estiverem configuradas corretamente, uma regra de URI personalizado no MemberPress dever\u00e1 ser capaz de proteger qualquer tipo de arquivo, exceto:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php, phtml, jpg, jpeg, gif, css, png, js, ico, svg, woff, ttf e xml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Esses tipos de arquivos s\u00e3o exclu\u00eddos para evitar poss\u00edveis problemas de desempenho.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Veja a seguir como voc\u00ea pode criar suas regras de reescrita em diversos servidores web:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache e Litespeed<\/h2>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"><strong>Observa\u00e7\u00e3o:<\/strong> O MemberPress desativa nossas regras de reescrita personalizadas por padr\u00e3o. Talvez seja necess\u00e1rio acessar MemberPress-&gt;Settings-&gt;General e desmarcar a caixa de sele\u00e7\u00e3o \"Disable Rewrite Rules\" (Desativar regras de reescrita) e, em seguida, salvar as altera\u00e7\u00f5es para que as regras de URI personalizadas funcionem.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A maioria dos provedores de hospedagem que oferecem o WordPress utiliza o Apache como servidor web. Se voc\u00ea estiver usando o Apache e seu usu\u00e1rio \u201capache\u201d tiver acesso de grava\u00e7\u00e3o \u00e0 raiz de documentos (o que \u00e9 a configura\u00e7\u00e3o mais comum), ent\u00e3o<br><strong>voc\u00ea n\u00e3o deveria precisar alterar suas regras de jeito nenhum<\/strong> ... O MemberPress deve ser capaz de posicionar automaticamente suas regras de forma adequada.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No entanto, caso precise editar suas regras de reescrita do Apache, eis o que voc\u00ea precisar\u00e1 adicionar ap\u00f3s as regras do WordPress:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN MemberPress Regras\n\n\nRewriteCond %{HTTP_COOKIE} mplk=([a-zA-Z0-9]+)\nRewriteCond \/var\/www\/somesite.com\/wp-content\/uploads\/mepr\/rules\/%1 -f\nRewriteRule ^(.*)$ - [L]\n\nRewriteCond %{REQUEST_URI} !^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)\nRewriteCond %{REQUEST_URI} \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8|ZIP|GZ|TAR|RAR|DOC|DOCX|XLS|XLSX|XLSM|PDF|MP4|M4V|MP3|TS|KEY|M3U8)$\nRewriteRule . \/wp-content\/plugins\/memberpress\/lock.php [L]\n\n\n# END MemberPress Regras<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><b style=\"background-color: initial;\">Observa\u00e7\u00e3o: <\/b>O c\u00f3digo deve ser colado diretamente sob o <code># END WordPess<\/code> no arquivo .htaccess.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Observa\u00e7\u00e3o:&nbsp;<\/strong>Voc\u00ea precisar\u00e1 certificar-se de substituir <strong>\/var\/www\/somesite.com\/<\/strong> com seu caminho real da raiz do documento.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nginx<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MemberPress<br><strong>n\u00e3o \u00e9 oficialmente compat\u00edvel com<\/strong> Nginx como um servidor da Web. No entanto, voc\u00ea <em>pode<\/em>&nbsp;tenha sorte em conseguir que a equipe de suporte da sua hospedagem na Web implemente um dos seguintes procedimentos para voc\u00ea.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx como um proxy do Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Se sua hospedagem na Web usa o Nginx como proxy (na frente) do Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localiza\u00e7\u00e3o ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {\n  proxy_pass http:\/\/localhost:PORT_HERE;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Observa\u00e7\u00e3o: <\/strong>O <strong>PORT_HERE<\/strong>&nbsp;precisar\u00e1 ser alterada, seu host deve saber a porta correta # para o apache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx como um servidor da Web aut\u00f4nomo<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Se voc\u00ea estiver usando apenas o Nginx como servidor web, talvez consiga obter os resultados desejados com o seguinte bloco \u201clocation\u201d no seu arquivo de configura\u00e7\u00e3o do Nginx:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        local ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {\n                # Configurar vari\u00e1veis de bloqueio\n                set $mplk_uri \"\/wp-content\/plugins\/memberpress\/lock.php\";\n                set $mplk_file \"\/var\/www\/html\/wp-content\/uploads\/mepr\/rules\/${cookie_mplk}\";\n\n                # n\u00e3o bloqueia o uri de bloqueio\n                if ($uri ~* \"^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)\") { break; }\n\n                # redireciona se o arquivo de bloqueio for um diret\u00f3rio ou n\u00e3o existir\n                if (-d $mplk_file) { rewrite ^ $mplk_uri last; }\n                if (!-e $mplk_file) { rewrite ^ $mplk_uri last; }\n        }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Se a op\u00e7\u00e3o acima n\u00e3o funcionar (especialmente se voc\u00ea estiver no Flywheel Cloud Hosting), tente a vers\u00e3o abaixo:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\tlocation ~ ^\/wp-content\/plugins\/memberpress\/lock.php { include fastcgi.conf; }&lt;br&gt;\n\tlocal ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {&lt;br&gt;\n\t       # Vari&aacute;veis de bloqueio de configura&ccedil;&atilde;o&lt;br&gt;\n       \t       definir $mplk_uri &quot;\/wp-content\/plugins\/memberpress\/lock.php&quot;;&lt;br&gt;\n\t       set $mplk_file &quot;$document_root\/wp-content\/uploads\/mepr\/rules\/${cookie_mplk}&quot;;&lt;br&gt;\n\t       # n&atilde;o bloqueia o uri de bloqueio&lt;br&gt;\n\t       Se ($uri ~* &quot;^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)&quot;) { break; }&lt;br&gt;\n\t       # redireciona se o arquivo de bloqueio for um diret&oacute;rio ou n&atilde;o existir&lt;br&gt;\n\t       if (-d $mplk_file) { rewrite ^ $mplk_uri last; }&lt;br&gt;\n\t       if (!-e $mplk_file) { rewrite ^ $mplk_uri last; }&lt;br&gt;\n\t}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Observa\u00e7\u00e3o:&nbsp;<\/strong>Voc\u00ea precisaria alterar o <strong>\/var\/www\/html\/<\/strong> da parte do caminho na linha abaixo, para corresponder ao caminho da pasta de instala\u00e7\u00e3o do Wordpress<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IIS, Caddy e outros servidores da Web<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">No momento, n\u00e3o temos nenhuma regra compat\u00edvel para esses servidores web.<\/p>","protected":false},"excerpt":{"rendered":"<p>MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress.&nbsp; Once your rewrite rules are setup properly a Custom URI rule in MemberPress should be able to protect any file types except: These file types are excluded in order to avoid possible performance issues. Here&#8217;s how you can construct your [&hellip;]<\/p>\n","protected":false},"author":62252,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","footnotes":""},"ht-kb-category":[1322],"ht-kb-tag":[1394,1393],"class_list":["post-61459","ht_kb","type-ht_kb","status-publish","format-standard","ht_kb_category-protecting-content","ht_kb_tag-webhost","ht_kb_tag-webhosting","entry"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_BR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Understanding Rewrite Rules for File Protection | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1275\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-02-13T12:32:44+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-02T16:44:14+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Understanding Rewrite Rules for File Protection | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#article\",\"name\":\"Understanding Rewrite Rules for File Protection | MemberPress\",\"headline\":\"Understanding Rewrite Rules for File Protection\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#articleImage\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"datePublished\":\"2024-02-13T07:32:44-05:00\",\"dateModified\":\"2024-12-02T11:44:14-05:00\",\"inLanguage\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\"},\"articleSection\":\"Protecting Content, webhost, webhosting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"position\":3,\"name\":\"Protecting Content\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#listItem\",\"name\":\"Understanding Rewrite Rules for File Protection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#listItem\",\"position\":4,\"name\":\"Understanding Rewrite Rules for File Protection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#authorImage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1790651430\",\"width\":96,\"height\":96,\"caption\":\"Nikola M\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/\",\"name\":\"Understanding Rewrite Rules for File Protection | MemberPress\",\"description\":\"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/understanding-rewrite-rules\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T07:32:44-05:00\",\"dateModified\":\"2024-12-02T11:44:14-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"pt-BR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Understanding Rewrite Rules for File Protection | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Entendendo as regras de reescrita para prote\u00e7\u00e3o de arquivos | MemberPress","description":"Embora essas instru\u00e7\u00f5es ainda sejam v\u00e1lidas, desde ent\u00e3o lan\u00e7amos o complemento de downloads MemberPress, portanto, se voc\u00ea n\u00e3o conseguir fazer com que a prote\u00e7\u00e3o de arquivos funcione com o seu servidor da Web, poder\u00e1 dar uma olhada nele. O MemberPress usa algumas regras avan\u00e7adas de reescrita do Apache para proteger arquivos n\u00e3o controlados diretamente pelo WordPress. Uma vez","canonical_url":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#article","name":"Understanding Rewrite Rules for File Protection | MemberPress","headline":"Understanding Rewrite Rules for File Protection","author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/#articleImage","width":1650,"height":1275,"caption":"memberpress logo icon"},"datePublished":"2024-02-13T07:32:44-05:00","dateModified":"2024-12-02T11:44:14-05:00","inLanguage":"pt-BR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#webpage"},"articleSection":"Protecting Content, webhost, webhosting"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/pt\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/#listItem","position":2,"name":"General","item":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/#listItem","position":3,"name":"Protecting Content","item":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#listItem","name":"Understanding Rewrite Rules for File Protection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#listItem","position":4,"name":"Understanding Rewrite Rules for File Protection","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/pt\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/pt\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#authorImage","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1790651430","width":96,"height":96,"caption":"Nikola M"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#webpage","url":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/","name":"Understanding Rewrite Rules for File Protection | MemberPress","description":"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T07:32:44-05:00","dateModified":"2024-12-02T11:44:14-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/pt\/#website","url":"https:\/\/memberpress.com\/pt\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"pt-BR","publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"}}]},"og:locale":"pt_BR","og:site_name":"MemberPress","og:type":"article","og:title":"Understanding Rewrite Rules for File Protection | MemberPress","og:description":"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once","og:url":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:width":1650,"og:image:height":1275,"article:published_time":"2024-02-13T12:32:44+00:00","article:modified_time":"2024-12-02T16:44:14+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Understanding Rewrite Rules for File Protection | MemberPress","twitter:description":"Though these instructions are still valid, we have since released the MemberPress Downloads Add-on, so if you are unable to get file protection working with your web server, you might check it out.Click here to read more about it. MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress. Once","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"61459","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-08-21 01:08:30","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2024-02-13 12:32:44","updated":"2026-09-28 18:41:04","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/general\/\" title=\"General\">General<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/\" title=\"Protecting Content\">Protecting Content<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\tUnderstanding Rewrite Rules for File Protection\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/pt\/"},{"label":"General","link":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/"},{"label":"Protecting Content","link":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/"},{"label":"Understanding Rewrite Rules for File Protection","link":"https:\/\/memberpress.com\/pt\/docs\/understanding-rewrite-rules\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=61459"}],"version-history":[{"count":2,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61459\/revisions"}],"predecessor-version":[{"id":69605,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61459\/revisions\/69605"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=61459"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-category?post=61459"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-tag?post=61459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}