D
D
Dmitry Polyakov2021-03-09 15:57:40
WordPress
Dmitry Polyakov, 2021-03-09 15:57:40

Why doesn't the CNC overwrite rule work?

Hi all. Tell me why the rule does not work, I broke my whole head:

add_action( 'init', 'rewrite_rule' );
function rewrite_rule(){
    add_rewrite_rule( '^/(professionals)/([?a-z=0-9-]+)/?$', 'index.php?pagename=$matches[1]&id=$matches[2]', 'top' );
    add_rewrite_tag( '%id%', '([^&]+)' );

    flush_rewrite_rules();
}

For such url https://club.convertmonster.ru/professionals/?id=23

Answer the question

In order to leave comments, you need to log in

7 answer(s)
M
mirosas, 2017-12-30
@homsi959

Russian language is also not superfluous to learn.
A school math course will be enough for most problems. Buy textbooks from grades 1 to 11 and study.
As you decide in the field, you will already dig further there (if you are young, then you can just go to a university from the top 20% in the Russian Federation). In top universities, in IT departments, for 2 years, almost all they do is teach mathematics. If you don’t know why you need it, it’s better not to waste more time than is required for the school curriculum. Anyway, you won’t learn mathematics quickly, because the point of studying mathematics is to transform the brain, which is not a quick process, although on the other hand, this process goes better before the age of 21. Therefore, if your age is under 19, then the best IT universities in the country are waiting for you. If you are noticeably older, or do not pull admission to a good university, then you should not study further than the school curriculum without a transparent need. But the school curriculum in mathematics is definitely worth knowing.

S
SEOD, 2017-12-30
@SEOVirus

Why is she needed, if not needed? :)
As the goal arises, so teach according to the goal. Otherwise, dedicate your life to what you do not need.

B
bullock, 2017-12-30
@bullock

If you have school knowledge from grades 1 to 9, then only this book will be enough for you. Discrete mathematics for programmers , it may not sound very attractive, but inside everything is elementary and with examples.
After gaining some experience, you can move on to learning Algorithms. Development guide (in my opinion, the best book on algorithms for a beginner and not experienced in higher mathematics), here you need a little more knowledge than they give at school, although you can not go too deep into details, but just understand the essence, in this case you will have enough a couple of practical articles on higher mathematics, here is an example . After all this, you yourself will understand which area you should study next, because it can be machine learning, it has its own specifics, or something else.
Good luck and never give up if something doesn't work out for you, it just means that you don't have enough information about the object.

A
Alexey Cheremisin, 2017-12-30
@leahch

I would change the programming language a bit, to python! There are wonderful opencv and scyphy/numphy library bindings for it. And the area is image processing, pattern recognition and everything in this area. It will be both interesting and mathematical. In Java, it is also possible with mathematics, but it will be more boring and. Poorer.

D
Dimonchik, 2017-12-30
@dimonchik2013

Why does a programmer need mathematics?

A
Andryukha, 2018-01-02
@syrov

natureofcode.com/book/chapter-1-vectors

M
Mikhail Potanin, 2018-01-05
@potan

Set theory, mathematical logic, linear algebra, category theory, type theory. You can add analysis, probability theory, statistics, game theory, operations research.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question