?p= is WordPress’s core link structure.
?p=2 goes to whatever post has ID 2.
Are you saying that you want all links to go to the main domain, that you don’t want anyone to be able to visit any post individually?
Thread Starter
merper
(@merper)
Thread Starter
merper
(@merper)
or I want all shortlink disable?
No, that’s not possible. What you’re referring to as shortlinks are actually default permalinks.
For example, take a look at http://macmanx.com/?p=14673 that’s not a shortlink, that’s the default permalink of the post. I have custom permalinks enabled, so it redirects to http://macmanx.com/2014/12/18/wordpress-4-1-released/
Now, take a look at a site without custom permalinks enabled: http://delta.jhuff.me/?p=7
That is again not a shortlink, that is how WordPress handles links when custom permalinks are disabled.
You can confirm this behavior yourself at Settings -> Permalinks in your blog’s Dashboard, or by viewing the documentation at https://codex.wordpress.org/Using_Permalinks