CMS Magento Mastering Development

Cannot whitelist htaccess blocked admin URL

Trying to whitelist the blocked admin URL for the outside world from htaccess but not working.

The below code worked in Magento 1. I have added this in my root_directory/pub/.httaccess.

RewriteCond %{REMOTE_ADDR} !^
RewriteRule ^(index.php/?)?(admin|rss|downloader) - [L,R=403]

This is blocking the URL but not whitelisting to my office IP. Any suggestions?

Leave a Reply

Your email address will not be published. Required fields are marked *