{"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\/fr\/docs\/understanding-rewrite-rules\/","title":{"rendered":"Comprendre les r\u00e8gles de r\u00e9\u00e9criture pour la protection des fichiers"},"content":{"rendered":"\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">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.<br><a href=\"https:\/\/memberpress.com\/docs\/mp-downloads-add-on\/\">Click here to read more about it<\/a>.<br>\t<\/p>\n\n\n\n<p><em>MemberPress<\/em> uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress.\u00a0<\/p>\n\n\n\n<p>Once your rewrite rules are setup properly a Custom URI rule in MemberPress should be able to protect any file types except:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php, phtml, jpg, jpeg, gif, css, png, js, ico, svg, woff, ttf and xml<\/code><\/pre>\n\n\n\n<p>These file types are excluded in order to avoid possible performance issues.<\/p>\n\n\n\n<p>Here's how you can construct your rewrite rules on various web servers:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache & 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>Note:<\/strong> MemberPress disables our custom rewrite rules by default. You may need to got to MemberPress->Settings->General and uncheck the \u201cDisable Rewrite Rules\u201d checkbox then save the changes in order for custom URI rules to work.\u00a0<\/p>\n\n\n\n<p>Most web hosts offering WordPress are running Apache as their web server. If you're running Apache and your apache user has write access to your document root (which is the most common configuration) then<br><strong>you shouldn't have to alter your rules at all<\/strong> \u2026 MemberPress should be able to automatically place your rules properly.<\/p>\n\n\n\n<p>However, if you do need to edit your Apache rewrite rules here is what you'll need to add after WordPress' rules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN MemberPress Rules\n<IfModule mod_rewrite.c>\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<\/IfModule>\n# END MemberPress Rules<\/code><\/pre>\n\n\n\n<p><b style=\"background-color: initial;\">Note: <\/b>The code should be pasted directly under the <code># END WordPess<\/code> line in the .htaccess file.<\/p>\n\n\n\n<p><strong>Note:\u00a0<\/strong>You will need to make sure you replace <strong>\/var\/www\/somesite.com\/<\/strong> with your actual docroot path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nginx<\/h2>\n\n\n\n<p>MemberPress<br><strong>does not officially support<\/strong> Nginx as a web-server. However,\u00a0you <em>may<\/em>\u00a0have luck getting your webhost support team to implement one of the following for you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx as an Apache Proxy<\/h3>\n\n\n\n<p>If your webhost uses Nginx as a proxy (in front of) for 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><strong>Note: <\/strong>The <strong>PORT_HERE<\/strong>\u00a0part will need to be changed, your host should know the correct port # for apache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx as a Standalone Webserver<\/h3>\n\n\n\n<p>If you're using only Nginx as the web-server, you might have success with the following location block in your Nginx configuration file:<\/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                # Setup lock variables\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                # don't lock the lock uri\n                if ($uri ~* \"^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)\") { break; }\n\n                # redirect if the lock file's a dir or doesn't exist\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>If the above does not work (especially if you are on Flywheel Cloud Hosting) try the version below instead:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\tlocation ~ ^\/wp-content\/plugins\/memberpress\/lock.php { include fastcgi.conf; }<br>\n\tlocation ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsx|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {<br>\n\t       # Setup lock variables<br>\n       \t       set $mplk_uri \"\/wp-content\/plugins\/memberpress\/lock.php\";<br>\n\t       set $mplk_file \"$document_root\/wp-content\/uploads\/mepr\/rules\/${cookie_mplk}\";<br>\n\t       # don't lock the lock uri<br>\n\t       if ($uri ~* \"^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)\") { break; }<br>\n\t       # redirect if the lock file's a dir or doesn't exist<br>\n\t       if (-d $mplk_file) { rewrite ^ $mplk_uri last; }<br>\n\t       if (!-e $mplk_file) { rewrite ^ $mplk_uri last; }<br>\n\t}<\/code><\/pre>\n\n\n\n<p><strong>Note:\u00a0<\/strong>You would need to alter the <strong>\/var\/www\/html\/<\/strong> portion of the path in the line below, to match the path to your wordpress installation folder<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IIS, Caddy and other web servers<\/h2>\n\n\n\n<p>Currently we don't have any supported rules for these web-servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MemberPress uses some advanced Apache rewrite rules to protect files not controlled directly by WordPress.\u00a0 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\u2019s how you can construct your [\u2026]<\/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,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_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":{"0":"post-61459","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-protecting-content","7":"ht_kb_tag-webhost","8":"ht_kb_tag-webhosting","9":"entry"},"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.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\/fr\/docs\/understanding-rewrite-rules\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\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\/fr\/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\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#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\":\"fr-FR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\"},\"articleSection\":\"Protecting Content, webhost, webhosting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"position\":3,\"name\":\"Protecting Content\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#listItem\",\"name\":\"Understanding Rewrite Rules for File Protection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#listItem\",\"position\":4,\"name\":\"Understanding Rewrite Rules for File Protection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/understanding-rewrite-rules\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#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":"Comprendre les r\u00e8gles de r\u00e9\u00e9criture pour la protection des fichiers | MemberPress","description":"Bien que ces instructions soient toujours valables, nous avons depuis publi\u00e9 le module compl\u00e9mentaire de t\u00e9l\u00e9chargement MemberPress, donc si vous n'arrivez pas \u00e0 faire fonctionner la protection des fichiers avec votre serveur web, vous pouvez l'essayer. MemberPress utilise des r\u00e8gles de r\u00e9\u00e9criture Apache avanc\u00e9es pour prot\u00e9ger les fichiers qui ne sont pas contr\u00f4l\u00e9s directement par WordPress. Une fois que","canonical_url":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/fr\/#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":"fr-FR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#webpage"},"articleSection":"Protecting Content, webhost, webhosting"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/fr","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/#listItem","position":2,"name":"General","item":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/#listItem","position":3,"name":"Protecting Content","item":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#listItem","name":"Understanding Rewrite Rules for File Protection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#listItem","position":4,"name":"Understanding Rewrite Rules for File Protection","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/fr\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/fr\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#webpage","url":"https:\/\/memberpress.com\/fr\/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":"fr-FR","isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/fr\/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\/fr\/#website","url":"https:\/\/memberpress.com\/fr\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"}}]},"og:locale":"fr_FR","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\/fr\/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":"2025-10-09 21:36:50","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-03-03 14:53:49"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/fr\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/fr\/doc-categories\/general\/\" title=\"General\">General<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/\" title=\"Protecting Content\">Protecting Content<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tUnderstanding Rewrite Rules for File Protection\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/fr"},{"label":"General","link":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/"},{"label":"Protecting Content","link":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/"},{"label":"Understanding Rewrite Rules for File Protection","link":"https:\/\/memberpress.com\/fr\/docs\/understanding-rewrite-rules\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/61459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/comments?post=61459"}],"version-history":[{"count":2,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/61459\/revisions"}],"predecessor-version":[{"id":69605,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/61459\/revisions\/69605"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/media?parent=61459"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=61459"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=61459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}