{"id":412078,"date":"2026-11-25T15:10:21","date_gmt":"2026-11-25T15:10:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-csv-redirects-with-cloudflare\/"},"modified":"2026-11-25T15:10:14","modified_gmt":"2026-11-25T15:10:14","slug":"khrlzhfr-simple-csv-redirects-with-cloudflare","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/khrlzhfr-simple-csv-redirects-with-cloudflare\/","author":16365821,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.0","stable_tag":"1.2.0","tested":"7.1.5","requires":"6.4","requires_php":"7.4","requires_plugins":null,"header_name":"khrlzhfr Simple CSV Redirects with Cloudflare","header_author":"Khairil Zhafri","header_description":"Manage redirects as CSV rules in WordPress, and optionally as Cloudflare Single Redirect rules, from Tools \u2192 Redirects.","last_updated":"2026-11-25 15:10:14","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/khrlzhfr\/simple-csv-redirects-with-cloudflare","header_author_uri":"https:\/\/khrlzh.fr","rating":0,"author_block_rating":0,"active_installs":0,"downloads":39,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.0":{"tag":"1.2.0","author":"khrlzhfr","date":"2026-11-25 15:10:14","revision":3823199}},"upgrade_notice":{"1.2.0":"<p>New name and folder. Install this version first, then delete the old copy; your settings and data are kept.<\/p>","1.1.3":"<p>Fixes where the query string goes when a CSV redirect target has a #fragment, and tidies the Setup tab.<\/p>","1.1.0":"<p>New name and plugin folder. Download your CSV before deleting the old copy.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[932,3882,567,727,726],"plugin_category":[],"plugin_contributors":[295356],"plugin_business_model":[],"class_list":["post-412078","plugin","type-plugin","status-publish","hentry","plugin_tags-932","plugin_tags-cloudflare","plugin_tags-csv","plugin_tags-redirect","plugin_tags-redirects","plugin_contributors-khrlzhfr","plugin_committers-khrlzhfr"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/khrlzhfr-simple-csv-redirects-with-cloudflare.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>khrlzhfr Simple CSV Redirects with Cloudflare gives you two ways to manage redirects from one screen under <strong>Tools \u2192 Redirects<\/strong>:<\/p>\n\n<ul>\n<li><strong>CSV Rules<\/strong> \u2013 unlimited redirects kept in a single CSV file and applied by WordPress. Add, edit, reorder, enable, disable and delete rules in WordPress, or download the CSV, edit it in a spreadsheet and upload it again.<\/li>\n<li><strong>Cloudflare Rules<\/strong> (optional) \u2013 manage Cloudflare Single Redirect rules for your domains, which redirect at Cloudflare's edge before a request reaches your server.<\/li>\n<\/ul>\n\n<p>Every change is recorded in a <strong>Change log<\/strong> with who made it, when, and the before and after values.<\/p>\n\n<h4>CSV Rules<\/h4>\n\n<ul>\n<li>Wildcards: <code>\/blog\/*<\/code> with <code>${1}<\/code> in the target to reuse what matched.<\/li>\n<li>Status codes 301, 302, 303, 307 and 308.<\/li>\n<li>Optionally pass the visitor's query string on to the target.<\/li>\n<li>Rules are checked from top to bottom; the first match wins.<\/li>\n<li>Uploads are checked row by row before anything changes.<\/li>\n<li>The file is kept in <code>wp-content\/uploads\/redirects\/<\/code> (each site's own uploads folder on multisite), protected from direct downloads on Apache.<\/li>\n<\/ul>\n\n<h4>Cloudflare Rules<\/h4>\n\n<p>Add a Cloudflare API token and your domains to <code>wp-config.php<\/code> and a Cloudflare Rules tab appears, where you can add, edit, reorder, enable, disable and delete Single Redirect rules. The screen shows how many rules each domain's plan allows.<\/p>\n\n<h4>Who can use it<\/h4>\n\n<p>Administrators and editors by default. You can change the roles per site in <code>wp-config.php<\/code>.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin can connect to the <strong>Cloudflare API<\/strong> (<code>https:\/\/api.cloudflare.com\/client\/v4<\/code>) to list and change Single Redirect rules for your domains. This only happens if you add a Cloudflare API token to <code>wp-config.php<\/code>, and only when someone with access opens the Cloudflare Rules tab or changes a rule there.<\/p>\n\n<p>It sends your API token, your Cloudflare zone (domain) names or IDs, and the redirect rules you create or change. Nothing is sent if no token is configured.<\/p>\n\n<p>Cloudflare's <a href=\"https:\/\/www.cloudflare.com\/website-terms\/\">Terms of Use<\/a> and <a href=\"https:\/\/www.cloudflare.com\/privacypolicy\/\">Privacy Policy<\/a> apply.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin.<\/li>\n<li>Go to <strong>Tools \u2192 Redirects<\/strong>. CSV Rules work straight away.<\/li>\n<li><p>Optional: to manage Cloudflare rules, follow the steps on the <strong>Setup<\/strong> tab to create a Cloudflare API token and add it to <code>wp-config.php<\/code>:<\/p>\n\n<p>define( 'RFCF_CONFIG', [\n    'token'   =&gt; 'cfut_your-api-token',\n    'domains' =&gt; [ 'example.com' ],\n] );<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20csv%20columns%20can%20i%20use%3F\"><h3>What CSV columns can I use?<\/h3><\/dt>\n<dd><p>description, source, target, status, preserve_query_string, enabled. Only <code>source<\/code> and <code>target<\/code> are required. Use the <strong>Setup<\/strong> tab or download the template for an example.<\/p><\/dd>\n<dt id=\"do%20csv%20rules%20work%20on%20cached%20pages%3F\"><h3>Do CSV rules work on cached pages?<\/h3><\/dt>\n<dd><p>No. CSV rules run inside WordPress, so they don't apply to pages served from a page cache or to files such as PDFs. Use Cloudflare Rules for those.<\/p><\/dd>\n<dt id=\"does%20it%20work%20on%20multisite%3F\"><h3>Does it work on multisite?<\/h3><\/dt>\n<dd><p>Yes. Each site has its own CSV file and change log. In <code>wp-config.php<\/code>, top-level settings apply to every site, and an entry keyed by site ID overrides them for that site.<\/p><\/dd>\n<dt id=\"what%20permissions%20does%20the%20cloudflare%20token%20need%3F\"><h3>What permissions does the Cloudflare token need?<\/h3><\/dt>\n<dd><p>Zone \u2192 Single Redirect \u2192 Edit, and Zone \u2192 Zone \u2192 Read, limited to the domains the site should manage.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Renamed to khrlzhfr Simple CSV Redirects with Cloudflare. The folder and text domain are now <code>khrlzhfr-simple-csv-redirects-with-cloudflare<\/code>. To switch a site, install this version, then delete the old copy: settings and data are kept.<\/li>\n<li>If two copies are installed, only one runs and the Plugins screen says which. Deleting a copy no longer removes data another installed copy still uses.<\/li>\n<li>CSV rule descriptions can no longer start with =, +, - or @, so a downloaded CSV can't run as a spreadsheet formula. Uploaded files are saved in the standard column order.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Column names, setting names, file names and values on the Setup and CSV Rules tabs are shown as code.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>The example CSV on the Setup tab no longer ends with an empty line.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>CSV redirects with preserve_query_string now put the visitor's query string before any #fragment in the target (for example \/new?a=1#section, not \/new#section?a=1).<\/li>\n<li>The X-Redirect-By header on CSV redirects now names the plugin.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Renamed to Simple CSV Redirects with Cloudflare. The plugin folder is now simple-csv-redirects-with-cloudflare, so WordPress treats it as a new plugin. Download your CSV from the old copy first: deleting the old copy removes its CSV and change log.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Reads and writes CSV text without temporary streams.<\/li>\n<li>Each action checks its security token before reading any input.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Renamed to Simple CSV &amp; Cloudflare Redirects.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release.<\/li>\n<li>CSV Rules: add, edit, reorder, enable, disable and delete rules in WordPress, or download, edit and upload the CSV.<\/li>\n<li>Cloudflare Rules: manage Single Redirect rules for your domains, with reordering and a rule count per plan.<\/li>\n<li>Change log of every rule change.<\/li>\n<\/ul>","raw_excerpt":"Manage redirects as CSV rules in WordPress, and optionally as Cloudflare Single Redirect rules, from Tools \u2192 Redirects.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/412078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=412078"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/khrlzhfr"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=412078"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=412078"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=412078"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=412078"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=412078"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=412078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}