|
||||||
|
||||||
วิธีการเรียงลำดับการเปิดไฟล์ index สำหรับ server linux |
|||||
คุณสามารถจัดเรียงลำดับ file index ของคุณได้เองว่าต้องการให้ index อะไรขึ้นก่อน-หลัง
วิธีการดังต่อไปนี้ 1.ให้สร้างไฟล์ .htaccess 2. ข้างในมี code ตามข้างล่าง เรียงลำดับชื่อ file index ตามต้องการให้มา ก่อน-หลัง DirectoryIndex index.htm index.html index.php index.cgi index.pl 3. จากนั้น upload ไฟล์ ไปไว้ใน httpdocs ค่ะ 4. ทดสอบการเรียน file ผ่านทางหน้าเว็บค่ะ ดังนั้นจากตัวอย่าง ลำดับของ file index ที่จะแสดงก็จะเป็นดังนี้ file index.htm จะถูกเรียกขึ้นมาเป็น fileแรก ถ้าไม่มีก็จะเรียกลำดับต่อๆไปค่ะ index.html index.php index.cgi index.pl |
|||||
| copyright © 2004-2009chaiyo hosting co ltd. all rights reserved. | ||
| Chaiyo Hosting Company Limited. 3312/33-34 2-3 FL Zone A, Soi Ladprao 101 Ladprao rd., Klongchan, Bangkapi, Bangkok 10240 Thailand | ||