How do I customize my WordPress shortlink structure in link-template.php without a plugin?
Okay, so, as mentioned in my comment to you: altering core files is not a good idea. But here is a plugin solution. First we’re going to create our own rewrite rules that rewrite s/123 (replace 123 with a post ID) to index.php?short=123. We’ll also have to filter the WordPress query variables so we can … Read more