更改Wordpress%postname%永久链接分隔符

时间:2012-03-31 14:16:36

标签: wordpress

我希望将Wordpress%postname%Permalink Separator从破折号更改为下划线或任何其他此类分隔符。

例如

更改:http://www.myblog.com/my-first-post/

http://www.myblog.com/my_first_post/

我确信它可能会做,但我不知道如何做。有人可以指导我或指向正确的方向吗?

如果我使用mod_rewrite,我的.htaccess中的行会为我实现上述目的吗?

非常感谢你:)

1 个答案:

答案 0 :(得分:0)

1. In order to change your url 

   From:http://www.myblog.com/my-first-post/

   To:http://www.myblog.com/my_first_post/

2. You need to go to Admin dashboard->Pages.In right side it will list out all pages of 
   website.There move the mouse to the page name(myfirstpost),below you will see edit 
   link and click on edit.

3. Edit page will open,in that below the page title,near permalink,click on edit and 
   change '-'(my-first-post) to '_'(my_first_post) and click ok.

4. Then,don't forget to click Update button on right side of the same page.Then view 
   the website for the change.