�����֥ǥ��쥯����� �桼���ӥ�ƥ� SEO ������������ �ǥ��������� �����ƥ� webapi�Ȥ�������ץ� ���ܤˤʤ륵����

index.htmlϤĤƤĤʤƤŪ˥ڡɽޤ

http://example.net/

Ǥ

http://example.net/index.html

ǤɤǤ⤪ʤڡϤ

󥸤Ϥ줾̡ΰۤʤڡURL㤦Τǡˤ򤷤ޤ



ºݤˤƱhtmlǤURL㤦Ȥϰ㤦ڡȡָ󥸥פϻפäƤޤΤǤ

㤨СAפȤȤȡBפȤȤhttp://example.net/פ˥󥯤ϤäƤƤȤޤ

Aȡפ
URLɽ󥯤Ƥ

Bȡפ


ȥ󥯤򤷤ƤȤ
ºݤΡ
http://example.net/פΥȤؤA,BȤ飲󥯤ϤǤ

󥸥

http://example.net/פURLΥȤ󥯣ġAȤΥ󥯡

http://example.net/index.htmlפURLΥȤ󥯣ġBȤΥ󥯡

ȤƽƤޤ̤ΥڡΤΤȤƽ졢绻櫓ǤϤޤ

ʬhttp://example.net/ץȤؤSEO̤Ƥޤޤ

Ƕϥ󥸥ʲƤäƤޤΤǡindex.htmlURLȤʤƱڡȤǧ褦ˤʤäƤƤޤȤϤޤ

褹뤿ˤϡindexȤʤΤɤ餫URL줹뤳ȤɬפǤ



ϡ.htaccessפˡmod_rewriteפ򵭽ҤƤʤޤ[

.htaccessפϥС¦ν򤹤뤿ΥեǤ
mod_rewriteפURL⥸塼Ǥ

ϡhttp://www.exmample.net/index.htmlפhttp://www.exmample.net/פ˥쥯Ȥ
Ȥ̿
.htaccessץեˡmod_rewriteפѤơ301쥯ȡפεҤ񤭤ޤ

301쥯ȤˤĤƤϤ顡
http://web-directors.net/modules/pico/?content_id=5


ޤޤ񤷤ϹͤΤȤԤäƤߤƤ

htaccessפʬurl줹뵭


1.ƥȥեѰդե̾ˡhtaccessפȤĤ
Υե
εҤ򥳥ԡƤ

-----颭------------------------------

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.example.net/$1 [R=301,L]

-----ޤǢ------------------------------

2.
http://www.example.net/ ʬȤURL˽ľƤ


htaccessפFTPǥɥȥ롼ȡʴŪˤϥȥåץڡƱ־γؤǤ˳ؤ˥åפhtaccessפ̾

htaccess

颭ʥɥåȤĤ

.htaccess

ѹޤ

www.example.netΤ٤ƤΥǥ쥯ȥǡhttp://www.example.net/index.htmlפ
http://www.example.net/פѴޤ

¾βγؤΥǥ쥯ȥǤ

http://www.example.net/sample/index.html

Τ褦index.htmlΤʤʪѹޤ

http://www.example.net/sample/

Ǹ󥸥URLhttp://example.net/index.htmlפ
http://example.net/פΤȤȤȤǧ褦ˤʤޤ

ޤΡ.htaccessפURLʬɤϡhttp://example.net/פȡhttp://www.example.net/פΰ㤤줹ΤˤƱͤѤǤޤ

wwwפ줹礹ϲ.htaccessפΥեɲ



Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sample\.com
RewriteRule ^(.*)$ http://www.sample.com/$1 [R=301,L]

wwwʤפ줹礹ϲ.htaccessפΥեɲ



Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.sample\.com
RewriteRule ^(.*)$ http://sample.com/$1 [R=301,L]






Yahoo!֥åޡϿ     
Υȥ꡼ϤƤʥ֥åޡɲ

̵Ǻ।饹ȥ
Υԥåå׵
֥ǥ쥯åե֥

ޥɡ

ɼԹɵ
powered by ޤޤ
 
web�ǥ��쥯��������󥯽�


���ý��ڡ�����
Copyright (c) webdirectors, Inc. All Rights Reserved.