[wp-trac] [WordPress Trac] #46792: CPANEL Directory Privacy DoesNOT work With WordPress Admin Directory

WordPress Trac noreply at wordpress.org
Thu Apr 4 10:27:36 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       |   Keywords:  needs-patch needs-testing
  Focuses:                |
--------------------------+---------------------------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list