Change default url to plugin custom post type
I have a custom post type in my plugin "Luckydraw" as 'voucher'.
By clicking on post link, wordpress generates its URL as :
http://localhost:81/luckydraw/index.php/voucher/testing-2/
But I want to change it to:
http://localhost:81/luckydraw/voucher/testing-2/
How would I do this?
Topic plugins-url url-rewriting plugin-development plugins Wordpress
Category Web