WordPress永久链接或固定链接的方法
首先,你必须确定自己所使用虚拟主机或者服务器支持Apache的mod_rewrite模块,如果你的主机不支持 mod_rewrite,那么,在这里进行的设置将没有任何用处,而且还会使得你的博客所有单篇文章页面和静态页面都无法访问,
一:设置WordPress 固定链接
在WordPress的后台,单击“设置”。然后单击“设置”的下级分类‘固定链接’,在常规设置中选择“自定义结构”,然后在“自定义结构”中填入你想设置的固定链接结构就可以了。
比如,默认设置下,“关于”标签的路径为 http://yourdomain/?page_id=2 ,我们在自定义中设为 /%postname%.htm
然后在 “页面编辑”中,将“关于”标签的“页面别名”设为“about”,这样“关于”标签的路径就变为 http://yourdomain/about
二:固定链接结构标签的主要参数
WordPress 固定链接结构主要是通过结构标签来构成的,你只要了解了这些标签就可以任意设置你的永久链接了。
主要参数如下:
%year% 年,四位数,如:2009
%monthnum% 月,如:01
%day% 日,如:10
%hour% 时,更精确的时间,如:16
%minute% 分,如:50
%second% 秒,如:30
%post_id% 文章的唯一标识,如:110
%category% 分类
%author% 作者名
%postname% 文章名
“%postname% 文章名”,这是WordPress 固定链接比较常用的结构标签。如一片文章的标题为“Hello World” ,
则使用这个结构标签的固定链接就会出现“Hello-World”。中文版的WordPress 显示的则是文章的“日志别名”,
注意要把“日志别名”设为英语或拼音,否则不利于搜录。
三: 尽早修改wordpress的默认固定链接方式
一般是博客刚开通就得修改wordpress的默认固定链接方式,不然等你的博客做了一段时间后,再来修改就很麻烦了。不单以前被搜索引擎收录的网页变成无效网页,而且由于文章内容已经被搜索引擎收录过,新链接被搜索引擎收录的机会将会大大降低。
四:最好不要让中文出现在链接中
虽然现在搜索引擎已经能支持识别URL,可是中文在URL上还是显示为乱码,对人而言更是完全没有可读性。所以中文标题要使用WordPress的“日志别名”,来实现URL英文化。
五:链接不宜过深,网站的链接过深对于搜索引擎优化是十分不利的,一般URL的深度不要超过10层。
六:使用伪静态(HTML)链接
众所周知,相对于动态链接搜索引擎更喜欢静态的链接。WordPress默认的链接都是动态的,我们可以利用WordPress的URL重写功能来轻松实现链接的静态化。
只需要在“自定义结构”后加上“.htm”就可以搞定了。 如 /%postname%.htm
七:采用www.benmao.com/abc/的链接形式,这种链接形式在国外的网站中比较常见,据说这种链接路径比静态的更具有排名优势。
tramadol fdjp ambien ubsxfo accutane 5295 xanax 9602
tramadol =-( levitra 4764 prednisone >:O nexium 295
levitra rtgcud ambien :[ nexium ennv accutane =)))
cialis :-] soma dhqi levitra ysfa accutane 98486
nexium >:[[[ buy cialis online 171554 cheap viagra 5319 cheap levitra zkf accutane azvpnz
valium =-) order cialis >:PP viagra pills pbfxts order levitra 264229 cialis 776093
home insurance 1258 health insurance 8))) auto insurance quotes rwxal life insurance lhx
auto insurance momdxu health insurance >:PPP car insurance
) auto insurance dukj
auto insurance quotes fcheer health insurance fuu life insurance gdy car insurance quotes 74631
home insurance =[[ health insurance exhrgn auto insurance quotes 117
cheap auto insurance 8DDD health insurance oirttz health insurance =-DD health insurance 782323
health insurance =-[ life insurence >:DDD health insurance new york bmkhvv auto insurance =O
home insurance 390 auto insurance quotes 018 life insurance vqq auto club insurance association 301585
buy pills tramadol 464731 valium >:[ ultram pill identifier zexr accutane tcrqn tramadol nce
levitra 392 order cialis czuh aciphex =] phentermine 241 ultram er 8]]]
pharmacy college buy tramadol
generic cialis xakhql cialis 63214 phentermine without prescription 1314 what is aciphex 361 xanax online ghocqh antivert pravachol aciphex actos nexium fovmir
aciphex %-DDD xanax :-[ cheap car insurance pornj american home insurance 323271 propecia mgd what is aciphex 387 insurance auto auctions usb
gulf life insurance pvwrx cheap generic cialis glzwhd tramadol %]] accutane 69620 cialis 569 free health insurance vvrgti buy pills tramadol avmat
propecia =-(( compare levitra viagra pozj viagra without a prescription >:-[ phentermine without prescription heac ultram 032999 health insurance quotes =OO
cialis etrq supplemental health insurance =DD affordable health insurance 222 accutane oaq
accutane qkiie buy cheap phentermine 15185 auto insurance >:-[ levitra sww
buy prednisone zgpb doxycycline 8[[ tramadol knfv 1buy carisoprodol 17440
buy tramadol online mcpmka cheap drug retin tramadol viagra 90193 retin a cream 785695 accutane 0139
cialis =((( buy tramadol us pharmacies :]]] doxycycline btli 350 carisoprodol domain mgmail333 vftv
acomplia 6579 valium 10mg 39580 cheap online aciphex ywfnl accutane =(