A
A
Alexander2018-03-23 15:45:12
Search Engine Optimization
Alexander, 2018-03-23 15:45:12

How to properly organize the store structure with ajax filters?

Good afternoon.
Shop on wordpress (woocommerce). I use ajax filters. When the filter is active, the following url is generated

domain.ru/shop/?filter=1&product_cat=vreznye-zamki&pa_proizvoditel=mottura&paged=1

I will decipher: the category is selected: Mortise locks and attribute: manufacturer Mottura. There is no heading or text on these pages.
Accordingly, there can be hundreds and thousands of filter combinations. To prevent pages from multiplying, I forbid them for indexing. But you still need pages to advance in the PS, so I want to do this:
1. Create a child (for Mortise locks) Mottura category. url to this page
domain.ru/shop/product-category/vreznye-zamki/mottura/
This page will have a title, text, and products (the same as for ajax filtering).
2. I do a 302 redirect with
domain.ru/shop/product-category/vreznye-zamki/mottura/
on the
domain.ru/shop/?filter=1&product_cat=vreznye-zamki&pa_proizvoditel=mottura&paged=1

3. I add url to PS
domain.ru/shop/product-category/vreznye-zamki/mottura/

Question: how correct is this? or such organization of structure is incorrect?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
ValeraValera, 2018-03-23
@cluberr

WP_Query Arguments: Taxonomies

V
Vitaliy Orlov, 2018-03-23
@orlov0562

According to the structure, everything is correct, in order not to produce copies there is:
And it’s better to bring the urls to the form
domain.ru/vreznye-zamki/mottura/
or if it’s very difficult (for example, there will be more pages at the same url), then at least
shop.domain.ru/vreznye-zamki/mottura/
this is all resolved through taxonomies and rewrite api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question