Web

Redirect To SSL Using Apache’s .htaccess

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Read More

CodeIgniter Routes Trick – Removing Controller Names from the URI to Keep URLs Short.

ช่วงนี้ บริการจำพวก URL Shortener Service กำลังมาแรง เช่น bit.ly goog.gl  youtu.be fb.me เป็นต้น ผมก็อยากจะลองทำเวบพวกนี้ บน Codeigniter เหมือนกัน สำหรับคนที่เคยใช้ codeigniter จะรู้ว่าระบบ URI ของ CI จะต้องมีรูปแบบดังนี้ http://localhost/control ...

Read More

[Apache] Create subdomain on localhost

ปกติแล้ว คนที่ทำเวบ ก็สร้าง subdomain ผ่าน direct admin ง่ายมาก แต่ถ้าอยากลองบน localhost จะทำยังไงดีหละ นั่งหาๆเหมือนกัน เลยจดไว้ดีกว่า กันลืม ลองดูวิธีนี้ละกันนะ ง่ายดี สำหรับตัวอย่างนี้ สมมติว่า ...

Read More

[PHP] Delete Apache owned files and folders

เนื่องจากผมใช้ Doku wiki แล้ว Apache มันสร้าง cache ขึ้นมาเอง แล้วผมอยากจะลบมัน ปรากฏว่าผมลบไฟล์ไม่ได้ เนื่องจากผมไม่ใช่ Root แล้วเป็นไฟล์ที่ Apache สร้างขึ้นด้วย นั่งขุดคุ้ยหา script php มาลบให้มันละกัน ...

Read More

[Happy New Year 2010] Twitter Countdown

มาดู Twitter Trend สำหรับปีใหม่ปีนี้ดีกว่า คนทั่วโลก Tweet หนักมาก #fail

Read More