[wp-trac] [WordPress Trac] #51495: The code in mod_rewrite_rules() to write to .htaccsess is wrong.
WordPress Trac
noreply at wordpress.org
Sun Oct 11 12:19:30 UTC 2020
#51495: The code in mod_rewrite_rules() to write to .htaccsess is wrong.
---------------------------+-----------------------------
Reporter: nendeb55 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: trunk
Severity: critical | Keywords:
Focuses: |
---------------------------+-----------------------------
Code in the rewrite_rules function
{{{#!php
<?php
$rules .= 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]';
}}}
1.There are no newlines, so the next line comes after it.
1.The ".* -" in is not "^(.*) -" in RewriteRule.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51495>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list