มี 212 บุคคลทั่วไป ออนไลน์

Joomla Components 1.5
ARTIO JoomSEF PDF พิมพ์ อีเมล
( 0 Votes )
เขียนโดย Administrator   
วันศุกร์ที่ 05 มิถุนายน 2009 เวลา 15:41 น.

compat_15_native ext_com ext_plugin

ทำให้ Search Engines ชอบ ด้วย ARTIO JoomSEF เป็นเครื่องมือที่เพิ่มประสิทธิภาพในการค้นหาของ Search Engines คอมโพเน้นท์นี้ จะทำให้ URL ของคุณดูดี และจะช่วยให้คุณได้รับตำแหน่งที่ดีขึ้นในการค้นหาเช่น Google หรือ Yahoo และที่ชอบที่สุดคือ ฟรี พร้อมทั้งมี add-on plugins อื่น ๆ ที่สนับสนุนการทำงานของคอมโพเน้นท์อื่น ๆ อีกมากมาย หาดาวน์โหลดได้จากเว็บผู้พัฒนา http://www.artio.net ในรุ่นที่จะทดสอบให้ดูนี้เป็นรุ่น ARTIO JoomSEF 3.3.0 ใช้กับ joomla 1.5.10 - 11 ก่อนอื่นก็ดาวน์โหลดมาเลยครับ ไฟล์ไม่ใหญ่โตอะไรมากมาย ให้ทำการติดตั้งเลยครับ

 

 

จากนัี้น เข้า plugin manager ให้ enable "system - ARTIO JoomSEF"

 

จากนั้นเข้าหน้าส่วนควบคุม ของ joomSEF

 

 

เข้าที่ ARTIO joomSEF Documention เพื่อจะก็อปปี้ตัวโค๊ตที่จะนำไปใส่ใน .htaccess

 

 

เลื่อนลงมาจนถึง บรรทัดที่เหมือนรูปด้านบน หรือจะก็อปจากโค๊ดที่ผมวางไว้ด้านล่างก็ได้

##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

## Can be commented out if causes errors, see notes above.
# Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

นำโค๊ดทั้งหมดไปแทน .htaccess อันเก่าของจุมล่า

 

 

จากนั้นกลับมาที่หน้าควบคุม เข้า ARTIO joomSEF Configuration

 

ส่วนการปรับแต่งขั้นพื้นฐาน
Enabled? คือ เปิด - ปิด การทำงานของคอมโพเน้นท์
Disable creation of new SEF URLs? คือ ปิดการสร้างลิ้งก์ แบบ SEF
Replacement character คือเปลี่ยนอักขระ ต่าง ๆ เป็น (-) ขีด หรืออย่างอื่นที่เรากำหนด ก็ใส่ไปในช่องนั้น
Page spacer character คือ เปลี่ยนช่องเว้นวรรค (spacer) เป็น (-) ขีด หรืออย่างอื่นที่เรากำหนด ก็ใส่ไปในช่องนั้น
Strip characters คือ ไม่ใส่อักขระเหล่านี้ลงในลิ้งก์ URL
Trim friendly characters คือ อักขระแทนที่ใส่ใน URL ได้
Use Title Alias? คือ การกำหนดรูปแบบของ URL คือ มีไตเติ้ลเต็ม ๆ ของบทความ Title Alias เอาเฉพาะ Alias มาเป็นลิ้งก์ URL
File suffix คือ คำต่อท้ายสุดของลิ้งก์ URL จะเป็น .html .php .asp หรืออะไรก็ได้เอาให้ดูดีมีชาติตระกูล
Default index file คือ ไฟล์อิเดก ที่จะให้มีต่อท้าย อย่างเช่น ใส่ให้เป็น index.php URL ที่ได้ http://www.you.com/youCategory/index.php หากว่างไว้จะได้ URL ประมาณนี้ http://www.you.com/youCategory/

ส่วนอื่น ๆ ก็กำหนดให้ โชว์ หรือไม่โชว์อะไร ใน URL


 

ส่วนนี้เป็นการปรับแต่งขั้นสูง

cache configuration ส่วนกำหนดแคช ว่าจะให้ใช้แคชไฟล์ หรือไม่
component configuration ส่วนกำหนดว่าจะให้ทำ SEF คอมโพเน้นท์ ไหน หรือไม่ทำก็กำหนดได้ที่นี่

 

ส่วนนี้ใช้ตั้งค่าและกำหนด page 404 (หน้าที่ไม่มีตัวตน)

เมื่อกำหนดเสร็จก็ ทำการ save ระบบจะถามว่าจะทำการสร้าง URL แบบอัตโนมัติหรือไม่ ก็กด yes ลอง พรีวิว ดู

URL แบบเดิม http://127.0.0.1/joomlatest/index.php?option=com_content&view=section&id=4&Itemid=37
URL แบบที่ทำ SEF http://127.0.0.1/joomlatest/joomla-overview.html
จะเห็นว่า URL สั้นลง จดจำง่าย search engines ชอบ

หลายคนที่ใช้ รุ่นฟรี จะมี back link ติดมาด้วย อาจจะมีคำถามว่าเอาออกอย่างไร

ให้เข้าไปที่ /components หาไดเรกทอรีที่ชื่อ /com_sef และหาไฟล์ joomsef.php เปิดด้วยโปรแกรมอิดิเตอร์ หรือโปรแกรมที่ใช้แก้ไขแท็กไฟล์

หาบรรทัด

$buf.='<'.'d'.'i'.'v'.'>'.'<'.'a'.' '.'h'.'r'.'e'.'f'.'='.'"'.'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'a'.'r'.'t'.'i'.'o'.'.'.'n'.'e'.'t'.'"'.'
'.'s'.'t'.'y'.'l'.'e'.'='.'"'.'f'.'o'.'n'.'t'.'-'.'s'.'i'.'z'.'e'.':'.' '.'8'.'p'.'x'.';'.' '.'v'.'i'.'s'.'i'.'b'.'i'.'l'.'i'.'t'.'y'.':'.'
'.'v'.'i'.'s'.'i'.'b'.'l'.'e'.';'.' '.'d'.'i'.'s'.'p'.'l'.'a'.'y'.':'.' '.'i'.'n'.'l'.'i'.'n'.'e'.'"'.'
'.'t'.'i'.'t'.'l'.'e'.'='.'"'.'I'.'n'.'f'.'o'.'r'.'m'.'a'.'t'.'i'.'o'.'n'.' '.'s'.'y'.'s'.'t'.'e'.'m'.'s'.','.' '.'d'.'a'.'t'.'a'.'b'.'a'.'s'.'e'.'s'.','.'
'.'i'.'n'.'t'.'e'.'r'.'n'.'e'.'t'.' '.'a'.'n'.'d'.' '.'w'.'e'.'b'.' '.'a'.'p'.'p'.'l'.'i'.'c'.'a'.'t'.'i'.'o'.'n'.'s'.'"'.'>'.'S'.'E'.'O'.' '.'b'.'y'.'
'.'A'.'r'.'t'.'i'.'o'.'<'.'/'.'a'.'>'.'<'.'/'.'d'.'i'.'v'.'>';

แล้วแทนที่ด้วย ทั้งหมดด้วย

//$buf.='<'.'d'.'i'.'v'.'>'.'<'.'a'.' '.'h'.'r'.'e'.'f'.'='.'"'.'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'a'.'r'.'t'.'i'.'o'.'.'.'n'.'e'.'t'.'"'.'
'.'s'.'t'.'y'.'l'.'e'.'='.'"'.'f'.'o'.'n'.'t'.'-'.'s'.'i'.'z'.'e'.':'.' '.'8'.'p'.'x'.';'.' '.'v'.'i'.'s'.'i'.'b'.'i'.'l'.'i'.'t'.'y'.':'.'
'.'v'.'i'.'s'.'i'.'b'.'l'.'e'.';'.' '.'d'.'i'.'s'.'p'.'l'.'a'.'y'.':'.' '.'i'.'n'.'l'.'i'.'n'.'e'.'"'.'
'.'t'.'i'.'t'.'l'.'e'.'='.'"'.'I'.'n'.'f'.'o'.'r'.'m'.'a'.'t'.'i'.'o'.'n'.' '.'s'.'y'.'s'.'t'.'e'.'m'.'s'.','.' '.'d'.'a'.'t'.'a'.'b'.'a'.'s'.'e'.'s'.','.'
'.'i'.'n'.'t'.'e'.'r'.'n'.'e'.'t'.' '.'a'.'n'.'d'.' '.'w'.'e'.'b'.' '.'a'.'p'.'p'.'l'.'i'.'c'.'a'.'t'.'i'.'o'.'n'.'s'.'"'.'>'.'S'.'E'.'O'.' '.'b'.'y'.'
'.'A'.'r'.'t'.'i'.'o'.'<'.'/'.'a'.'>'.'<'.'/'.'d'.'i'.'v'.'>';

 

หาดาวน์โหลดได้ที่นี่

 

แก้ไขล่าสุด ใน วันอังคารที่ 21 กรกฏาคม 2009 เวลา 12:41 น.
 

คุณไม่มีสิทธิที่จะโพสต์ข้อคิดเห็น กรุณาล็อคอินหรือลงทะเบียน

RSS 2.0 Joomla Articles
twitter
Creative Commons License