[wp-trac] [WordPress Trac] #46792: CPANEL Directory Privacy DoesNOT work With WordPress Admin Directory
WordPress Trac
noreply at wordpress.org
Fri Apr 5 06:22:58 UTC 2019
#46792: CPANEL Directory Privacy DoesNOT work With WordPress Admin Directory
---------------------------------------+------------------------------
Reporter: ephremfirew | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Security | Version: 5.1
Severity: blocker | Resolution:
Keywords: needs-patch needs-testing | Focuses:
---------------------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> Hello WordPress,
>
> Protecting my wordpress admin directory using CPANEL Directory privacy
> feature doesn't work.
>
> And I tried to replace the default wordpress rule in htaccess file:
>
> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteRule ^index\.php$ - [L]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
> </IfModule>
>
> Replaced with this by adding another / after Dot:
>
> RewriteRule ./ /index.php [L]
>
> IT WORKS 100%
>
> But the problem is:
>
> When I update the permalinks, it will rewrite the default rules again.
>
> What is the solution?
New description:
Hello WordPress,
Protecting my wordpress admin directory using CPANEL Directory privacy
feature doesn't work.
And I tried to replace the default wordpress rule in htaccess file:
{{{
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
}}}
Replaced with this by adding another / after Dot:
{{{
RewriteRule ./ /index.php [L]
}}}
IT WORKS 100%
But the problem is:
When I update the permalinks, it will rewrite the default rules again.
What is the solution?
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46792#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list