By default, the login page /customer/account/login/referer/aHR0cHM6Ly93d3cuc2FuaWRvZS5kZS9jdXN0b21lci9hY2NvdW50L2luZGV4Lw~~/ may be indexed by search engines such as Google. To prevent this, create or override the file customer_account_login.xml in your theme and add the following code:
|
1 2 3 4 5 6 |
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <meta name="robots" content="noindex,nofollow" /> </head> </page> |
Redeploy the content, clear the cache and…