Category Archives: WordPress

[Apache] wordpress permalink 404 issue

edit site conf (vim /etc/apache2/sites-available/pr.site.org.conf)

enable apache2 rewrite module

restart apache2 service

  Ref. [1] Victor Hung’s Diary: 「教學」解決 WordPress 固定網址設定 404 錯誤 [2] DigitalOcean: WordPress permalinks tried everything  

Posted in Apache, Ubuntu, WordPress | Leave a comment

[WordPress] Avoid xmlrpc attack

add below code in the functions.php in your themes.

edit .htaccess

delete the xmlrpc.php file Ref. 解決WordPress被利用xmlrpc.php文件攻擊導致內存超負荷

Posted in WordPress | Leave a comment

WP-Syntax 支援顯示之程式碼類型

每次都不知道貼上來的 source code 有沒有被支援 總算來去查了一下….. 有支援的還蠻多的,如下所示 WP-Syntax abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol, cpp-qt, cpp, csharp, css, d, dcs, delphi, … Continue reading

Posted in WordPress | Leave a comment

wordpress內嵌pdf說明

因為有點老了,避免之後忘記怎麻用,先記錄一下 參考網址 : http://www.qna.tw/how-to-embed-pdf-file-into-web-page 先利用wordpress的上傳功能將pdf上傳 上傳完成後複製檔案網址,接著就編輯內文插入iframe <iframe src=”http://docs.google.com/viewer?url=網址&embedded=true” width=”600″ height=”780″ style=”border: none;”></iframe> 例如 <iframe src=”http://docs.google.com/viewer?url=https://cowmanchiang.me/wp/wp-content/uploads/2011/02/resumev2-201102081.pdf&embedded=true” width=”600″ height=”780″ style=”border: none;”></iframe>

Posted in WordPress | Leave a comment

在WordPress內發表含有程式碼的紀錄

語法如下…要記得啊 sourcecode language=’c’[/sourcecode]

Posted in WordPress | 1 Comment