{"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":"<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">Bien que ces instructions soient toujours valables, nous avons depuis publi\u00e9 le module compl\u00e9mentaire de t\u00e9l\u00e9chargement MemberPress. Si vous ne parvenez pas \u00e0 faire fonctionner la protection des fichiers avec votre serveur web, vous pouvez le consulter.<br><a href=\"https:\/\/memberpress.com\/fr\/docs\/mp-downloads-add-on\/\">Cliquez ici pour en savoir plus<\/a>.<br>\t<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>MemberPress<\/em> 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.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Une fois que vos r\u00e8gles de r\u00e9\u00e9criture sont correctement configur\u00e9es, une r\u00e8gle URI personnalis\u00e9e dans MemberPress devrait \u00eatre en mesure de prot\u00e9ger tous les types de fichiers sauf :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php, phtml, jpg, jpeg, gif, css, png, js, ico, svg, woff, ttf et xml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ces types de fichiers sont exclus afin d'\u00e9viter d'\u00e9ventuels probl\u00e8mes de performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Voici comment vous pouvez configurer vos r\u00e8gles de r\u00e9\u00e9criture sur diff\u00e9rents serveurs web :<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache et 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>Remarque :<\/strong> MemberPress d\u00e9sactive nos r\u00e8gles de r\u00e9\u00e9criture personnalis\u00e9es par d\u00e9faut. Il se peut que vous deviez aller dans MemberPress-&gt;Param\u00e8tres-&gt;G\u00e9n\u00e9ral et d\u00e9cocher la case \"D\u00e9sactiver les r\u00e8gles de r\u00e9\u00e9criture\", puis enregistrer les modifications pour que les r\u00e8gles d'URI personnalis\u00e9es fonctionnent.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">La plupart des h\u00e9bergeurs proposant WordPress utilisent Apache comme serveur web. Si vous utilisez Apache et que votre utilisateur \u00ab apache \u00bb dispose d\u2019un acc\u00e8s en \u00e9criture \u00e0 votre r\u00e9pertoire racine (ce qui correspond \u00e0 la configuration la plus courante), alors<br><strong>vous ne devriez pas avoir \u00e0 modifier vos r\u00e8gles du tout<\/strong> ... MemberPress devrait \u00eatre en mesure de placer automatiquement vos r\u00e8gles correctement.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Toutefois, si vous devez modifier vos r\u00e8gles de r\u00e9\u00e9criture Apache, voici ce que vous devrez ajouter apr\u00e8s les r\u00e8gles de WordPress :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN MemberPress R\u00e8gles\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 R\u00e8gles<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><b style=\"background-color: initial;\">Remarque : <\/b>Le code doit \u00eatre coll\u00e9 directement sous le <code># END WordPess<\/code> dans le fichier .htaccess.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Remarque :&nbsp;<\/strong>Vous devez vous assurer que vous remplacez <strong>\/var\/www\/somesite.com\/<\/strong> avec le chemin de votre docroot.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nginx<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MemberPress<br><strong>ne prend pas officiellement en charge<\/strong> Nginx comme serveur web. Cependant, vous <em>peut<\/em>&nbsp;vous pouvez esp\u00e9rer que l'\u00e9quipe d'assistance de votre h\u00e9bergeur mette en \u0153uvre l'une des solutions suivantes pour vous.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx en tant que proxy Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Si votre h\u00e9bergeur utilise Nginx comme proxy (devant) pour Apache :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>location ~* \\.(zip|gz|tar|rar|doc|docx|xls|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>Remarque : <\/strong>Les <strong>PORT_HERE<\/strong>&nbsp;devra \u00eatre modifi\u00e9e, votre h\u00e9bergeur devrait conna\u00eetre le port # correct pour apache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nginx comme serveur web autonome<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Si vous utilisez uniquement Nginx comme serveur web, vous pourriez obtenir le r\u00e9sultat souhait\u00e9 en ajoutant le bloc \u00ab location \u00bb suivant dans votre fichier de configuration Nginx :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        location ~* \\.(zip|gz|tar|rar|doc|docx|xls|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {\n                # Configuration des variables de verrouillage\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                # ne pas verrouiller l'uri de verrouillage\n                if ($uri ~* \"^\/(wp-admin|wp-includes|wp-content\/plugins|wp-content\/themes)\") { break ; }\n\n                # redirection si le fichier de verrouillage est un dir ou n'existe pas\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 la version ci-dessus ne fonctionne pas (surtout si vous \u00eates sur Flywheel Cloud Hosting), essayez plut\u00f4t la version ci-dessous :<\/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|xlsm|pdf|mp4|m4v|mp3|ts|key|m3u8)$ {&lt;br&gt;\n\t       # Configuration des variables de verrouillage&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       # ne pas verrouiller l&#039;uri de verrouillage&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       # redirection si le fichier de verrouillage est un dir ou n&#039;existe pas&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>Remarque :&nbsp;<\/strong>Vous devez modifier le <strong>\/var\/www\/html\/<\/strong> du chemin dans la ligne ci-dessous, pour qu'il corresponde au chemin de votre dossier d'installation de wordpress<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IIS, Caddy et autres serveurs web<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u00c0 l'heure actuelle, nous ne disposons d'aucune r\u00e8gle prise en charge pour ces serveurs 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\/fr\/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=\"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\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/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","@id":"https:\/\/memberpress.com\/fr\/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\/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":"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\/fr\/\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/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\">\u00bb<\/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\">\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\/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}]}}