Jump to: navigation, Search
Poakpong.com ปกป้อง ดอมคอม Life is random

Enable Drupal Clean URLs in 000webhost.com

I was setup Drupal (CMS) in free hosting 000webhost.com and one option from Drupal are Clean URLs. But in first time after install completed, I can not enable Clean URLs.

After search in forum of 000webhost.com (by Google search), I found the trick to enable Drupal Clean URLs

Step 1. Disable 000webhost analytics (here).
Step 2. Edit .htaccess file in root (Drupal) directrory, by remove "#" before "RewriteBase /" in line 100 and save change (in case user Drupal 6.4).
Step 3. Back to menu "Site Configure > Clean URLs" and enable, finish !

I do not  know why, but it is work. Good luck.

Poakpong's Blog | Add New Comments

URL history to estimate gender

เห็นเค้าเล่นกัน อยากลองมั่ง (อ่านมาจาก @pradt @ @celerachan ผ่านทาง google reader)

Likelihood of you being FEMALE is 11%
Likelihood of you being MALE is 89%


Site    /    Male-Female Ratio
google.com    0.98
yahoo.com    0.9
youtube.com    1
paypal.com    1.04
blogger.com    1.06
imdb.com    1.06
wordpress.com    0.98
flickr.com    1.15
download.com    1.27
apple.com    0.89
mac.com    0.9
imageshack.us    0.87
last.fm    0.96
domaintools.com    1.41
hotmail.com    0.83
multiply.com    1
filehippo.com    1.67
feedburner.com    1.11
alexa.com    1.33
icq.com    0.8
gmail.com    0.9
dpreview.com    1.99
freehostia.com    1.2
openoffice.org    1.3
tinyurl.com    0.83
nokia.com    1.13
blip.tv    1.11
recaptcha.net    1.15

วิธีการคือ เว็บมันจะเก็บ history ของ browser ที่เราใช้ไปประมวลผล (เข้าใจว่ามันจะเลือกเฉพาะเว็บต่างประเทศที่ดังๆ เว็บไทยไม่นับ) ลองเล่นดูได้ที่นี่ .. URL history to estimate gender

Poakpong's Blog | Add New Comments

Mod_Rewrite

(( บล็อกอันนี้อาจไม่ถูกหลักวิชา เพราะเป็นการลองผิดลองถูก แล้วนำมาบันทึกไว้กันลืม ))

เนื่องจากขณะนี้มีโปรเจคด่วนสุดๆ ต้องทำ และเกี่ยวข้องกับคนจำนวนมาก (ถ้ามันพร้อมให้บริการ) เลยต้องออกแบบข้อมูลรองรับเอาไว้

จุดหนึ่งที่กำลังคิดว่ามีความสำคัญ คือการใช้งาน URL ซึ่งคิดว่าโปรเจคด่วนสุดๆ นี้ มีการเรียกข้อมูลผ่าน Address Bar ในเบราเซอร์ยาวพอสมควร จึงค้นหาข้อมูลเกี่ยวกับการย่อ URL ให้สั้นลง

Mod_Rewrite จึงเข้ามาเป็นคำตอบสำหรับงานนี้

Mod_Rewrite ทำงานได้ทั้งใน Apache และ IIS ในบล็อกนี้ทดสอบบน Apache 2.0.54 วิธีการตรวจสอบว่า Server เราใช้งานได้หรือไม่คือดูใน Loaded Modules ใน phpinfo(); แต่ถ้าเปิดดูแล้วไม่มีข้อมูล สามารถนำไฟล์ไปทดสอบในเว็บได้

ดาวน์โหลดไฟล์ rewrite.zip แล้วคลาย zip ออกจากได้โฟลเดอร์ rewrite อัพโหลดเข้าไปในเซิร์ฟเวอร์ "/rewrite/" ทดลองพิมพ์ URL ใน Address Bar ดังนี้ "/rewrite/test_rewrite.html" เบราเซอร์จะแสดงผลว่าใช้ Mod_Rewrite ได้ หรือ ไม่ได้

(( เวอร์ชั่นของ Server ที่ใช้งาน Mod_Rewrite ได้คือ Apache 1.3 ขึ้นไป หรือ IIS 4 สำหรับ Windows NT Server และ IIS 5 สำหรับ Windows 2000 Server ... ในบางครั้งการใช้งาน Mod_Rewrite ไม่ได้ อาจเป็นเพราะผู้ให้บริการโฮสติ้งไม่ได้เปิด Option นี้ไว้ ต้องสอบถามสักหน่อยนะครับ ))

เอาล่ะพอใช้งาน Mod_Rewrite ได้แล้ว ก็มาทดลองใช้กันดีกว่า

Poakpong's Blog | 1 Comment | Read more: อ่านทั้งหมด »

To support Thai language in iPod.

Inside Poakpong.com
มีอะไรใน ปกป้อง ดอทคอม

Subscribe RSS Feed

Recent All Posts

Poakpong's Playground

Copyright Notice

POAKPONG.com,
Update to 2008.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.

Disclaimer

เนื้อหา ข้อความ ความเชื่อ ในเว็บไซต์นี้ เป็นความคิดเห็นของผู้เขียน ผู้อ่านโปรดใช้วิจารณญาณในการอ่าน และคิดหาเหตุผลเพิ่มเติมด้วยตัวเอง รวมทั้งรูปภาพ ภาษา ซึ่งอาจไม่ถูกต้องตามหลักภาษา ผู้อ่านต้องใช้วิจารณญาณเช่นกัน

Our Network:

Create in Mac OS X

Search in Poakpong
ค้นหาใน ปกป้อง ดอทคอม



Advertising

เปิดเนต เปิดใจ
ปกป้องเสรีภาพของเรา
บนอินเทอร์เน็ตของเรา
(ร่วมลงชื่อในแถลงการณ์)

Google Friend Connect

Web Links

SEO Stats powered by MyPagerank.Net