Answer the question
In order to leave comments, you need to log in
Short links for wordpress, how to organize?
Good afternoon!
The task is to organize short links for posts like //site/postcode/ on wordpress (postcode is a label for a post in the understanding of wordpress). At the moment, links like //site/%category%/%postname%/ have already been configured, we do not refuse them.
It turns out that you need to add a duplicate entry using a short link.
Any search for a solution is directed to articles like "set up permalinks" and "short links from the //site/?p=id series".
Unfortunately, with WordPress, you are still on your own. Can you please tell me how to organize it correctly, according to all the rules of wordpress?
Answer the question
In order to leave comments, you need to log in
What's not to like http://site.com?p=id
? add_rewrite_rule
You can make links through , but if you want to keep the current link structure, then in any case you need to have id
entries in the link, so the maximum you can achieve is a link of the form http://site.com/p123/
, where p
is any character or word and 123
these are id
entries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question