O
O
Oleg2019-02-26 10:31:26
JavaScript
Oleg, 2019-02-26 10:31:26

How to make seo filter in php js?

Hello everyone, the
2nd day I'm trying to find information on how to implement a seo filter in php and js
(an example of a seo filter https://youtu.be/sU3-X5vdQ9g?t=149),
but so far I've only come across paid solutions for sites on cms.
In principle, there is an understanding of how to replace content through js when clicking on the filter buttons, but I don’t understand how to change the url and meta tags that are written in the head.
Interested in the moment how to implement a change of url and meta tags in the head without reloading the page, in php and js, maybe there is an article or a specific example, based on which you can do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2019-02-26
@olegolehovich

You work with meta tags as with regular tags
And to change the URL, you need to operate on the History object , and more specifically, the pushState method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question