Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress HTACCESS或PHP重写查询字符串_Wordpress_.htaccess - Fatal编程技术网

Wordpress HTACCESS或PHP重写查询字符串

Wordpress HTACCESS或PHP重写查询字符串,wordpress,.htaccess,Wordpress,.htaccess,我正在使用WordPress,我想重写查询字符串以清除url 查询字符串 http://example.com/for-farmers-and-growers/members/member-profiles/?username=example http://example.com/for-farmers-and-growers/members/member-profiles/example 清除查询字符串 http://example.com/for-farmers-and-growers/

我正在使用WordPress,我想重写查询字符串以清除url

查询字符串

http://example.com/for-farmers-and-growers/members/member-profiles/?username=example
http://example.com/for-farmers-and-growers/members/member-profiles/example
清除查询字符串

http://example.com/for-farmers-and-growers/members/member-profiles/?username=example
http://example.com/for-farmers-and-growers/members/member-profiles/example

如何在WordPress中执行此操作?

您可以在
永久链接选项页面中设置wp以使用漂亮的URL

有很好的教程和指南

此外,您还可以使用诸如


对于自定义查询字符串,请选中

,您可以在
永久链接选项页面
中将wp设置为使用漂亮的URL:

有很好的教程和指南

此外,您还可以使用诸如


对于自定义查询字符串,请选中

,您可以在
永久链接选项页面
中将wp设置为使用漂亮的URL:

有很好的教程和指南

此外,您还可以使用诸如


对于自定义查询字符串,请选中

,您可以在
永久链接选项页面
中将wp设置为使用漂亮的URL:

有很好的教程和指南

此外,您还可以使用诸如


对于自定义查询字符串,请检查

它已经在Pretty URL上,但我有一个自定义查询字符串,我希望该查询字符串在Pretty URL上,但我有一个自定义查询字符串,我希望该查询字符串在Pretty URL上,但我有一个自定义查询字符串,我希望该查询字符串在Pretty URL上已经在Pretty URL上了,但我有一个自定义查询字符串,我希望该查询字符串可以在Pretty URL上