WordPress里设置永久链接的一个技巧

我们知道,在WordPress里可以设置每篇文章的永久链接。默认的是http://blog.manboo.info/?p=821 这样的链接,不利于搜索引擎的收录。

可以设置成其它形式:
如:http://www.domain.com/2008/01/15/sample-post/

http://www.domain.com/archives/821

这个的前提是服务器支持mod_rewrite,根目录下有.htaccess这个文件且有可写的权限。如果没有这个文件,可以新建一个txt文件,传上FTP。利用FTP修改文件名,设置好权限。

但是如果服务器不支持的时候,可以在域名地址后先加上index.php
比如你想有类似这样的链接:
http://www.domain.com/archives/821

就可以设置成这样:

http://www.domain.com/index.php/archives/821

来自:Weblog Tools Collection

Popularity: 24% [?]

Tags: ,
Related posts

cirtexhosting_ads.gif

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word