Reputation: 575
I have set the Permalinks
to custom /%postname%/
. eg: a post id is 2, its url is
`mysite.com/test.`
i want to when the user access mysite.com/?p=2
it redirect to mysite.com/test
how do i do? or is there a pludgin to get that thank u.
Upvotes: 0
Views: 160
Reputation: 25322
You don't need any plugin for that since it is the default behavior, except if you are using a very old version of worpdress.
Upvotes: 1
Reputation: 21979
a little bit of googling:
http://yoast.com/wordpress/permalink-redirect/
Quote from the page:
That way, a URL like this:
http://www.example.com/page1/?q=ek
Will be automatically redirected to:
http://www.example.com/page1/
Upvotes: 0