12.27.04

WordPress rewrite

Posted in Blog, Computer, Murmuring, Network, Search Engine at 4:37 pm by gslin

改了一下 WordPress 的 option,然後用 Apache 的 rewrite rules 將 WordPress 的 permlink 指到正確的地方,這樣就不會有 ‘?’ 出現了,會讓 search engine 抓起來比較順… (有些 search engine 會以為這是 CGI page 而 ooxx…)

4 Comments »

  1. in2 Said:

    December 27, 2004 at 5:03 pm

    你可以在最後面加上 .html 作結尾 :PPPP

  2. ijliao Said:

    December 27, 2004 at 11:34 pm

    你這樣會不會有問題啊 ? 如果標題有中文的話,你的 permalink 裡面也會有中文,有的 client 可能無法接受 ?

  3. Yinyin Said:

    January 1, 2005 at 1:11 pm

    可以用這種的就不用設 mod_rewrite 了:
    /index.php/archives/ %post_id%/date/ %year%/%monthnum%/%day%/ %postname%

    permalink 裡的中文會被編碼過 (比如「義美牛奶糖」會變成這樣: %e7%be%a9%e7%be%8e%e7%89%9b%e5%a5%b6%e7%b3%96) 應該不會有問題

    :)

  4. empire poker Said:

    September 8, 2005 at 8:30 am

    empire poker

    You are invited to visit the pages about texas hold em party poker video poker

Leave a Comment