简体   繁体   English

Magento过滤器URL重写

[英]Magento filters url rewrite

I've got one task about Layer Navigation block on site, powered by Magento. 我在Magento的支持下完成了一项有关图层导航块的任务。 We want to make a SEO friendly URL's in filters: 我们想在过滤器中创建一个SEO友好的URL:

Now there are links like 现在有类似的链接

mymagazine.ru/category/subcategory1?manufacturer=1926

As you see - manufacturer=1926 is a GET-parameter, which just filter the products. 如您所见-Manufacturer = 1926是一个GET参数,它仅过滤产品。 So I need to make this link like 所以我需要使这个链接像

mymagazine.ru/category/subcategory1/my_manufacturer

Where " my_manufacturer " is an allias to " ?manufacturer=1926 ". 其中“ my_manufacturer ”是“ ?manufacturer = 1926 ”的同盟。

There is one way to do this task: we can make allias for all the filter pages manually with the Magento admin. 有一种方法可以执行此任务:我们可以使用Magento管理员手动为所有过滤器页面建立联盟。 But the site got a great catalloge, so this would be too tedious. 但是该网站的目录非常棒,因此这太繁琐了。 I thought, that this extentions could help me, but not in my practice... 我认为,这种扩展可以帮助我,但对我的实践无济于事。

Yoast-landing-pages Yoast进登陆页面

Fishpigs_attribute_splash_page Fishpigs_attribute_splash_page

If you have any thought about this problem, I would love to hear them. 如果您对此问题有任何想法,我很想听听他们的意见。

Thank's for your attention! 感谢您的关注!

What I did on my store is tag those links in the layered navigation with rel="noindex,nofollow" and I put the same into the robots meta tag in the target pages. 我在商店所做的工作是使用rel =“ noindex,nofollow”在分层导航中标记这些链接,然后将这些链接放入目标页面的robots meta标签中。 I didn't want every variation of the pages to be indexed as I don't want duplicate content. 我不想索引页面的每个变体,因为我不想重复的内容。 Each variation of the category pages from that layered navigation ends up having the same title, meta description, and often many of the same products. 该分层导航中类别页面的每个变体最终都具有相同的标题,元描述,并且经常有许多相同的产品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM