Is it possible to make a customised Wordpress, seo

2019-07-31 15:26发布

问题:

I need to change the customized URl of wordpress, where I pass the id in querystring to get data from my custom table. Now i want to see the title instead of that id.

Ex. My site link id http://xyz.com/?page_id=1&pid=12 Now if i try the wordpress permalink it will convert the wp page only like http://xyz.com/test?pid=12

What can i do to make the URl like http://xyz.com/test/title. Where title is stored in database for pid=12.

回答1:

Yes this is possible and actually pretty easy. Go to /wp-admin/options-permalink.php and look for the custom option that you want. You must have access to the server to update the .htaccess file. Here is more info.



回答2:

if you want the name of your page to appear as in: http://www.xyz.com/about/

instead of something like: http://www.xyz.com/?page_id=398

  1. login to your back end of wordpress
  2. under the settings menu(on left side) click permalinks
  3. click custom structure and in the text field type in:

/%postname%/



标签: php wordpress