Search Engine Optimisation is a method of re-writing the links in such a way as to improve navigation of your site by search engines.
There
are some very specific requirements that must be met if SEO is to work.
Additionally there are some manual changes that you may need to apply
in certain situations.
The Basics
All these conditions must be met in order for SEO to run.
- You must run Apache
- To check this go to Joomla administration > System > System Info.
Server type should be listed next to Web Server. SEF will not run on
IIS.
- You must have mod_rewrite enabled
- To check this go to Joomla administration > System > System Info.
Click on PHP Information tab. Scroll down until you find Loaded Modules
row. mod_rewrite should be listed here. If it's not, ask your web host
to activate mod_rewrite.
- Your server must allow .htaccess override
-
To check this delete everything from your .htaccess file and write a simple command, for example:
Code:
Redirect /google.html http: //www.google.com
Now point your browser to http://www.yoursite.com/google.html If it redirects you to google.com then you are OK. - Set $mosConfig_sef= "1" in configuration.php
-
You can also activate SEF under Site > Global Configuration.
- Rename htaccess.txt to .htaccess
- This can be done with a FTP program. Note the dot at the beginning!
Also note that you can't do this on Windows, you must rename it
directly on server.
- If Joomla is not in the root directory
- If your Joomla installation is not in the root directory. For example if it is in www.yoursite.com/yourjoomlasite rather than
www.yourjoomlasite.com. Then you may need to add the following line to
your .htaccess file.
Code:
RewriteBase /yourjoomlasite
Provided you have met all the conditions and made the required changes as needed you should be able to successfuly activate SEO.
Search Engine Optimisation(サーチ エンジン 最適化)は 検索エンジンによるサイトの指示を改善するために、あなたのサイトのリンクを書き直します。
SEOを動かすために、いくつかのとても特殊な条件が必要になります。
さらに設置環境によっては、手書きによって変更しなければならない箇所がいくつかあるかもしれません。
基本
SEOを動かすためには、これらの条件の全てが満たされていることが必要です。
- Apacheでの運営
- Joomlaの管理領域から > システム > システム情報 で確認します。 サーバータイプは Web Server の横に示されています。SEFはIISでは動作しません。
- mod_rewrite が動作可能であること
- Joomlaの管理領域から > システム > の システム情報 で確認します。
PHP Information のタブをクリックし、Loaded Modules 欄が見つかるまで下へスクロールします。
mod_rewrite が示されていなければいけません。もし示されていなければ、サーバー管理者に mod_rewrite を動作させるように依頼してください。
- あなたのサーバーは .htaccess が書き換え可能であること
- これを確認するにはあなたの .htaccess ファイルの内容を全て消去し、簡単なコマンドを書いてみます。例:
コード:
Redirect /google.html http: //www.google.com
ブラウザーにhttp://www.yoursite.com/google.html と書いてアクセスします、もし google.com に転送(リダイレクト)されるなら問題ありません。
- configuration.php 内で $mosConfig_sef= "1" と設定する
- あなたのサイトはSEFを動作可能にします > グローバル・コンフィグレーションにて。
- htaccess.txt を .htaccess とファイル名を変更する
- これはFTPプログラムでできます。ファイル名の最初に ドット(.)が付くことに注目! Windows内ではできません、 ファイル名の変更はサーバー内のディレクトリで行います。you must rename it directly on server.
- もし Joomla がルートディレクトリにないなら
- もし Joomla をルートディレクトリ以外にインストールした場合、例として www.yourjoomlasite.comではなく www.yoursite.com/yourjoomlasite のようなとき。 .htaccess ファイルに以下のような文を加える必要があるかもしれません。
コード:
RewriteBase /yourjoomlasite
条件が全て満たされて必要な変更を全て行った後、SEOを動作させることができます。
|
|
最終更新 2005年 10月 24日(月曜日) 00:15 |