[英]WP Generating wrong permalink
我遇到自定義帖子類型永久鏈接的問題。 這是我的錯誤:
我的帖子名稱是“ wordpress論壇”,永久鏈接應為: http : //example.com/custom-post-type/wordpress-forum/但它總是像下面這樣生成:
http://example.com/custom-post-type/something/
example.com/custom-post-type/something-1/
example.com/custom-post-type/something-2/
不是根據帖子名稱生成的。
請幫助我解決該問題。
謝謝
將以下配置放入.htaccess文件
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /dreams/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /dreams/index.php [L]
</IfModule>
然后,在設置燙發鏈接選項的過程中,我選擇了自定義結構,並指定了/index.php/%postname%
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.