In this tutorial, we'll learn how to offend links in the footer (legal information, terms and conditions, etc.) on all pages except the home page. The aim is to optimize your site's crawl budget and give more weight to your strategic pages. With the "SEO Recommendation" application, this complex action becomes quick and easy to implement.
1. Log on to the EdgeSEO console
2. Go to the "SEO Recommendations" application.
3. Click on the Add a recommendation button.
1. Give your recommendation an explicit name, e.g.: Obfuscation of footer links.
2. Briefly describe the objective, e.g.: Optimize my site's crawl budget.
1. Target the pages / contexts where obfuscation is to be applied (for example, all pages except the home page).
2. Select the Query path option, then match a regex.
3. Use this regex to target all pages on your site except the home page: ^(?!\/\?$).+.
💡 Note: this regex will only work if the home page is of type `https://www.quiksilver.fr/`. If your home page is, for example, [`https://www.quiksilver.fr/fr/`](https://www.quiksilver.fr/fr/), this regex will not be applicable and will need to be adapted. See the documentation on targets for a complete understanding of this concept.
1. Copy and paste each link CSS selector you wish to offend
2. Use a tool like Automa or your browser's developer tools to retrieve the CSS selectors.
3. Example CSS selector: `a[href="https://www.example.com/terms"]`
💡Note 1: make sure you retrieve the exact link as indicated in the href tag (absolute or relative)
💡Note 2: if the link is present more than once and you want to target only those located in the footer, add a CSS selector to include the parent, e.g. div.footer a[href="..."]
1. Cliquez sur valider pour sauvegarder votre recommandation.
2. Rendez-vous sur une URL que vous avez ciblé et inspectez le DOM des pages concernées.
3. Vérifiez que les balises `<a>` des liens ciblés ont été transformées en balises `<span>`.