This article mainly introduces how to enable SEF in Joomla. it analyzes the steps and precautions for enabling SEF in Joomla1.5. For more information, see Joomla.
This example describes how to enable SEF in Joomla. We will share this with you for your reference. The details are as follows:
The main purpose of using the SEF (search engine friendly) URL is to make the content keyword appear in the URL, which is also an important part of SEO. for search engines, this will enhance the correlation between the current page and these keywords. Next let's take a look at how to use the sef url in Joomla 1.5.
1. install Joomla1.5
2. in Global Configuration, set "Search Engine Friendly URLs" to "Yes" and save the settings.
This is the most important search engine optimization setting in the Joomla system. Therefore, before proceeding to the following steps, we should first enable it. now, the website URL is composed of the title Alias (Alias) of the current page or article. If no alias is set for the current page or article, the URL directly uses the page or article Title to form the URL (Title ).
If you have any problems, try to modify the $ live_site settings in the configuration. php file. If your Joomla is installed in the site root path (for example, public_html or htdocs), you need to set $ live_site to '/', 'http://www.example.com', or 'http://example.com ". If the site is installed in the sub-path, you need to set $ live_site to "/sub-path name" or "http://www.example.com/sub-region name" or "http://example.com/sub-region name ".
If the setting is successful, the current URL should be:
Http://www.example.com/index.php? Option = com_content & view = article & id = 19 & Itemid = 27
Changed:
Http://www.example.com/index.php/joomla-overview
3. in global settings, set "Add suffix to URLs" to "Yes" and save the settings.
This is just a sudden step in the form of adding a. HTML suffix for url. for example:
Http://www.example.com/index.php/joomla-overview
Changed:
Http://www.example.com/index.php/joomla-overview.html
4. in global settings, set "Use Apache mod_rewrite (Use Apache mod_rewrite)" to "enable (Yes)" and save the settings.
To enable the mod_rewriteof apachenormally, rename the ". htaccess" file in the site root directory ".
After it is enabled successfully, the following URL is displayed:
Http://www.example.com/index.php/joomla-overview.html
Will be changed:
Http://www.example.com/joomla-overview.html
It is recommended that you add aliases for all pages and articles on your site, so that you can control the SEF website more accurately. aliases should only use numbers and letters, separate the hyphens (-) to avoid special symbols.