我使用wordpress作爲CMS。我開發了一個定製插件來顯示經銷商信息。如何更改Wordpress中單個頁面的URL?
下面是該網址。
http://example.nl/dealer-info/dealer-informatie/?n=91&d=dealer-name
91
是用於獲取從DB中的數據經銷商ID。
我可以改變爲URL如下。
http://example.nl/dealer-info/dealer-informatie/91/dealer-name
或
http://example.nl/dealer-info/dealer-informatie/?n=91/dealer-name
我的目的是我想補充/dealer-name
的URL。
如何更改Wordpress中單個頁面的URL?
鑑於我不想更改將影響整個網站的固定鏈接。我意識到這可以使用.htaccess完成,但我不知道如何去做。如果可能,請幫助我。