是否可以制作自定义的 Wordpress、seo 友好、url? [英] Is it possible to make a customised Wordpress, seo friendly, url?

查看:30
本文介绍了是否可以制作自定义的 Wordpress、seo 友好、url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更改 wordpress 的自定义 URl,我在查询字符串中传递 id 以从我的自定义表中获取数据.现在我想看到标题而不是那个 ID.

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.

例如.我的网站链接 ID http://xyz.com/?page_id=1&pid=12现在,如果我尝试使用 wordpress 永久链接,它只会像 http://xyz.com/test?pid=12

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

我该怎么做才能使 URl 像 http://xyz.com/test/title.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.

推荐答案

是的,这是可能的,而且实际上非常简单.转到 /wp-admin/options-permalink.php 并查找所需的自定义选项.您必须有权访问服务器才能更新 .htaccess 文件.这里有更多信息.

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.

这篇关于是否可以制作自定义的 Wordpress、seo 友好、url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆