Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#46792 new defect (bug)

CPANEL Directory Privacy DoesNOT work With WordPress Admin Directory — at Initial Version

Reported by: ephremfirew's profile ephremfirew Owned by:
Milestone: Awaiting Review Priority: normal
Severity: blocker Version: 5.1
Component: Security Keywords: needs-testing reporter-feedback
Focuses: Cc:

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?

Change History (0)

Note: See TracTickets for help on using tickets.