Q
Q
qwestion2014-11-29 08:02:30
PHP
qwestion, 2014-11-29 08:02:30

"I don't exactly know how to ask the question." cnc using mysql query?

Searched everywhere, found here one similar question. It offered an interesting option that makes cnc with minimal link processing intervention and using a mysql query.
Tell me how this method is called and where can I find an example or a lesson or a hint of something similar?
The principle is something like this:
The correct directory architecture is made, then with the help of php or Apache,
extra characters are removed "what is better to use: php with regular expressions or a mod for Apache or the same ngenix ??"
Well, at the end of the link is the very understandable url, `id`=`name_link`, from
name.domen/categore.php?name=29&id=2167 it turns out
name.domen/categore_name/nameurl
If so, how to do it?? In theory, there the number of requests to the database is reduced to one, if the request is correctly compiled)
You don’t even need to parse the yurl, if only because of the ending and there you already use the same expression for the kill /? etc..?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iliyaisd, 2014-11-29
@qwestion

In WordPress, this is implemented using slugs. Those. once, based on the title, unique NCs are generated (My best article name => my-best-article-name), and they are searched in the database:
http://site.com/[category/]my-best- article-name
If you don't want to do this, you can just quietly substitute the id in the url:
http://site.com/[category/]id/my-best-article-name
Search engines will respond just as well, and you don't have to string search.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question