Right now I am working on one of my client's project. Its all about amazon product display. My client wants me to change the permalinks of all posts, pages, serch results, archive pages, categorypages, all custom post type pages.
I am very new to Rewrite API. I have read the documentation provide on wordpress codex here https://codex.wordpress.org/Function_Reference/WP_Rewrite and here https://codex.wordpress.org/Rewrite_API as well as on the interne but can't able to make the things clear.
Can anyone help me to generate custom permalinks for my pages ?
Right now, Page url looks like http://mysite.com/?page_id=2 if its default permalink and http://mysite.com/sample-page/ if its post name permalink.
I wants the page url looks like http://mysite.com/info/sample-page.
Here info is static word I want to be added to my page url.
How can I achieve this ? Can anyone help me out in this situation ? I have already wasted my 2 days in this issue and I am sure its really simple for the one who already worked with this.
Quick help much appreciated.
Thank You, Aezaz