{"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\/es\/docs\/understanding-rewrite-rules\/","title":{"rendered":"Reglas de reescritura para la protecci\u00f3n de archivos"},"content":{"rendered":"<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">Aunque estas instrucciones siguen siendo v\u00e1lidas, desde entonces hemos lanzado el Complemento de Descargas MemberPress, as\u00ed que si no consigues que la protecci\u00f3n de archivos funcione con tu servidor web, puedes echarle un vistazo.<br><a href=\"https:\/\/memberpress.com\/es\/docs\/mp-downloads-add-on\/\">Haga clic aqu\u00ed para leer m\u00e1s<\/a>.<br>\t<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>MemberPress<\/em> utiliza algunas reglas avanzadas de reescritura de Apache para proteger los archivos no controlados directamente por WordPress.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Una vez que las reglas de reescritura est\u00e1n configuradas correctamente, una regla URI personalizada en MemberPress deber\u00eda ser capaz de proteger cualquier tipo de archivo excepto:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php, phtml, jpg, jpeg, gif, css, png, js, ico, svg, woff, ttf y xml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Estos tipos de archivos se excluyen para evitar posibles problemas de rendimiento.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A continuaci\u00f3n te explicamos c\u00f3mo puedes configurar tus reglas de reescritura en distintos servidores web:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache y 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>Nota:<\/strong> MemberPress deshabilita nuestras reglas de reescritura personalizadas por defecto. Es posible que tenga que ir a MemberPress-&gt;Configuraci\u00f3n-&gt;General y desmarcar la casilla \"Desactivar reglas de reescritura\" y luego guardar los cambios para que las reglas URI personalizadas funcionen.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">La mayor\u00eda de los proveedores de alojamiento web que ofrecen WordPress utilizan Apache como servidor web. Si utilizas Apache y tu usuario \u00abapache\u00bb tiene acceso de escritura a la ra\u00edz de documentos (que es la configuraci\u00f3n m\u00e1s habitual), entonces<br><strong>No deber\u00edas tener que modificar tus normas en absoluto.<\/strong> ... MemberPress deber\u00eda ser capaz de colocar autom\u00e1ticamente sus reglas correctamente.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No obstante, si necesitas modificar tus reglas de reescritura de Apache, esto es lo que tendr\u00e1s que a\u00f1adir despu\u00e9s de las reglas de WordPress:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN MemberPress Reglas\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 Reglas<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><b style=\"background-color: initial;\">Nota: <\/b>El c\u00f3digo debe pegarse directamente debajo del <code># END WordPess<\/code> en el archivo .htaccess.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Nota:&nbsp;<\/strong>Deber\u00e1 asegurarse de sustituir <strong>\/var\/www\/somesite.com\/<\/strong> con su ruta docroot real.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nginx<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MemberPress<br><strong>no admite oficialmente<\/strong> Nginx como servidor web. Sin embargo <em>mayo<\/em>&nbsp;tenga suerte y consiga que el equipo de soporte de su alojamiento web le aplique alguna de las siguientes medidas.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx como proxy de Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Si su proveedor de alojamiento web utiliza Nginx como proxy (delante de) para Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>location ~* \\.(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>Nota: <\/strong>En <strong>PORT_HERE<\/strong>&nbsp;parte tendr\u00e1 que ser cambiado, su anfitri\u00f3n debe conocer el puerto correcto # para apache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx como servidor web independiente<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Si solo utilizas Nginx como servidor web, es posible que te funcione el siguiente bloque \u00ablocation\u00bb en tu archivo de configuraci\u00f3n de Nginx:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        ubicaci\u00f3n ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {\n                # Configurar variables de bloqueo\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                # no bloquear la uri de bloqueo\n                if ($uri ~* \"^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)\") { break; }\n\n                # redirige si el archivo de bloqueo es un dir o no existe\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\">Si lo anterior no funciona (especialmente si usted est\u00e1 en Flywheel Cloud Hosting) pruebe la versi\u00f3n de abajo en su lugar:<\/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\tlocation ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {&lt;br&gt;\n\t       # Configurar variables de bloqueo&lt;br&gt;\n       \t       set $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       # no bloquee la uri de bloqueo&lt;br&gt;\n\t       if ($uri ~* &quot;^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)&quot;) { break; }&lt;br&gt;\n\t       # redirigir si el archivo de bloqueo es un dir o no existe&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>Nota:&nbsp;<\/strong>Tendr\u00eda que modificar el <strong>\/var\/www\/html\/<\/strong> de la ruta en la l\u00ednea siguiente, para que coincida con la ruta de la carpeta de instalaci\u00f3n de wordpress<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IIS, Caddy y otros servidores web<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Actualmente no disponemos de ninguna regla compatible con estos 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\/es\/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=\"es_ES\" \/>\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\/es\/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\\\/es\\\/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\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#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\":\"es-ES\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\"},\"articleSection\":\"Protecting Content, webhost, webhosting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"position\":3,\"name\":\"Protecting Content\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/protecting-content\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#listItem\",\"name\":\"Understanding Rewrite Rules for File Protection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#listItem\",\"position\":4,\"name\":\"Understanding Rewrite Rules for File Protection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/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\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/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\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/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\":\"es-ES\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/understanding-rewrite-rules\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/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\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"es-ES\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#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":"Reglas de reescritura para la protecci\u00f3n de archivos | MemberPress","description":"Aunque estas instrucciones siguen siendo v\u00e1lidas, desde entonces hemos lanzado el Complemento de Descargas MemberPress, as\u00ed que si no consigue que la protecci\u00f3n de archivos funcione con su servidor web, puede echarle un vistazo.Haga clic aqu\u00ed para leer m\u00e1s sobre \u00e9l. MemberPress utiliza algunas reglas avanzadas de reescritura de Apache para proteger los archivos no controlados directamente por WordPress. Una vez que","canonical_url":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/es\/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\/es\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/#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":"es-ES","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#webpage"},"articleSection":"Protecting Content, webhost, webhosting"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/es\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/general\/#listItem","position":2,"name":"General","item":"https:\/\/memberpress.com\/es\/doc-categories\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/protecting-content\/#listItem","position":3,"name":"Protecting Content","item":"https:\/\/memberpress.com\/es\/doc-categories\/protecting-content\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#listItem","name":"Understanding Rewrite Rules for File Protection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#listItem","position":4,"name":"Understanding Rewrite Rules for File Protection","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/es\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/es\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/es\/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\/es\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","@id":"https:\/\/memberpress.com\/es\/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\/es\/docs\/understanding-rewrite-rules\/#webpage","url":"https:\/\/memberpress.com\/es\/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":"es-ES","isPartOf":{"@id":"https:\/\/memberpress.com\/es\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/es\/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\/es\/#website","url":"https:\/\/memberpress.com\/es\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"es-ES","publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"}}]},"og:locale":"es_ES","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\/es\/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\/es\/\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/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\/es\/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\/es\/"},{"label":"General","link":"https:\/\/memberpress.com\/es\/doc-categories\/general\/"},{"label":"Protecting Content","link":"https:\/\/memberpress.com\/es\/doc-categories\/protecting-content\/"},{"label":"Understanding Rewrite Rules for File Protection","link":"https:\/\/memberpress.com\/es\/docs\/understanding-rewrite-rules\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/61459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/comments?post=61459"}],"version-history":[{"count":2,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/61459\/revisions"}],"predecessor-version":[{"id":69605,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/61459\/revisions\/69605"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media?parent=61459"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=61459"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=61459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}