Hi. i'm new to magento and i need to make filters url more seo friendly. ex : http://website.com/blugi-dama?culoare=13 to http://website.com/blugi-dama/color/red
also, i need to add nofolow tag if more than 2 filters are selected. any idea or module? thanks
Hi @iubbbbbbb,
You won't get it using Magento OOTB but there are several paid modules that can help you.
Maybe you can start looking at https://marketplace.magento.com/
if someone need fix..
for nofollow:
copy Head.php file (/app/code/core/Mage/Page/Block/Html/Head.php) to the local directory (/app/code/local/Mage/Page/Block/Html/Head.php)
Here is how to implement modification of the new file:
public function getRobots() { if (empty($this->_data['robots'])) { $this->_data['robots'] = Mage::getStoreConfig('design/head/default_robots'); } //Added NOINDEX, FOLLOW for category page with filter(s) if(Mage::app()->getFrontController()->getAction()->getFullActionName() == 'catalog_category_view'){ $appliedFilters = Mage::getSingleton('catalog/layer')->getState()->getFilters(); //var_dump($appliedFilters); //<-- uncomment and see filters as array in page source code in meta robots tag. if(count($appliedFilters) > 2){ $this->_data['robots'] = "NOINDEX, FOLLOW"; } } return $this->_data['robots']; }
url filters fixed with this module https://github.com/Flagbit/Magento-FilterUrls
You can use SEO Meta tags templates module by FME. It allows you to automatically generate SEO friendly Meta titles, description, keywords & custom URLs.
Check out more features here https://www.fmeextensions.com/meta-tags-generator-magento-2-extension.html
To add NoIndex NoFollow tag to any number of products, categories or CMS pages, use this extension. It allows you to use any combination of Index Follow tag.
https://www.fmeextensions.com/no-index-no-follow-tag-magento-2-extension.html
If you want an all-in-one SEO module, use the following. It will completely remove your SEO workload & cost. This module combines 7 small SEO extensions and will automate the process of generating SEO meta tags, canonical tags, Google rich snippets, NoIndex NoFollow tags, Image alt tags, Hreflang tag, and XML & HTML sitemap.
https://www.fmeextensions.com/ultimate-seo-toolkit-for-magento-2.html
Thanks for sharing the solution! To address the "nofollow" issue, copying the Head.php file and implementing the modification is a smart move. Your additional code snippet for handling the "NOINDEX, FOLLOW" on category pages with filters is a thoughtful touch.
For those looking to enhance their SEO strategy, consider staying updated on the latest SEO updates, including valuable updates from reliable sources like "Search Engine Land." Additionally, for URL filters, the module from Flagbit can be a handy resource. Keep optimizing!
#latestseoupdates #SEOtips
Using Magento's Built-in URL Rewrites:
Magento allows URL rewrites, but for custom filter URLs, you might need a module or custom development. You can try the following modules:
SEO Suite Ultimate by Mageworx:
Improved Layered Navigation by Amasty:
Custom Development: If you prefer custom development, you'll need to create URL rewrite rules and customize your layered navigation URLs. This requires a good understanding of Magento's routing and URL management.
Using a Module:
SEO Suite Ultimate by Mageworx:
Improved Layered Navigation by Amasty:
Custom Development:
You can achieve this by customizing the theme or module:
Create an Observer:
Modify the Header:
Mageworx SEO Suite Ultimate:
Amasty Improved Layered Navigation:
Using these extensions can significantly simplify the process and provide additional SEO features to enhance your Magento store.