Category Archives: WordPress

[Apache] wordpress permalink 404 issue

edit site conf (vim /etc/apache2/sites-available/pr.site.org.conf) <VirtualHost pr.site.org:80> ServerName pr.site.org ServerAdmin webmaster@localhost DocumentRoot /var/www/pr.site.org # !– add this section <Directory /var/www/pr.site.org> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> # !– ErrorLog ${APACHE_LOG_DIR}/pr_error.log CustomLog ${APACHE_LOG_DIR}/pr_access.log combined </VirtualHost> … Continue reading

Posted in Apache, Ubuntu, WordPress | Leave a comment

[WordPress] Avoid xmlrpc attack

add below code in the functions.php in your themes. add_filter(‘xmlrpc_enabled’, ‘__return_false’); edit .htaccess #protect xmlrpc <Files xmlrpc.php> Order Deny,Allow Deny from all </Files> 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