| home bookshelf slides |
| Joomla : Extensions The OpenSEF Component |
Page 1This tutorial will cover installation and use of the OpenSEF component. SEF = "Search Engine Friendly". The OpenSEF component creates easy-to-read URLs. A URL is a web page address. (URL = "Uniform Resource Locator") Right now, our new Joomla site has URLs that look like this: http://www.nycircuits.com/index.php?option="com_content"&task="view"&id="12"&Itemid="26" We'd like the above URL to look more like http://www.nycircuits.com/about_xsl.htm OpenSEF allows us to create these "Search Engine Friendly" URLs. OpenSEF can be found at www.open-sef.org. Page 2Here's the OpenSEF site (as of May 2006). We'll click on Downloads. Page 4As of the date of this tutorial (May 2006) the most recent release is OpenSEF 2.0.0-RC5. The "RC" in the release title means "Release Candidate". This means that the software is only a candidate for release, not a "final" release. It may contain bugs and is not recommended for production sites. However, we're going to install it anyway, since many sites are using it with no problems. There are of course no guarantees that it will work. Page 5Now we've reached the actual file download screen. The larger file is the one we want. The other is just a "patch" (a partial release). The file list changes frequently, so when you view it, it may be different. Just be sure to choose the latest full release. Page 6We'll save this file to the Windows desktop. (Needless to say, if you are not using Windows, you can save the file somewhere else.) Page 7Let's log in to the Joomla Administrator application. Select Installers - Components. Page 8
Page 9Installation succeeded. The OpenSEF post-install screen displays. This screen has a notice asking us to proceed to configuration. However, first we need to change some Joomla settings.. Page 10Joomla has an SEO feature built in. We need to turn that on first. Choose Site - Global Configuration. Page 11In Global Settings:
Page 12Now let's look at our site in FileZilla. (Viewing the site in FileZilla was covered in a previous tutorial in this series. You can also use whatever tool your hosting provider has set up for viewing your files). The htaccess.txt file is indicated. Page 13Here we've renamed it. Note that the filename now starts with a period. Now that the file is named ".htaccess", the web server will read it and process the directives in it. (To rename a file using FileZilla, right-click then choose Rename). Page 14
However, the URL still does not have meaningful keywords. That is what we'll get with OpenSEF. Page 15Returning to the Joomla admin panel, we'll select the pulldown: Components - OpenSEF - Configuration. Page 17Returning to the site, we see that, after clicking on the same page as before, the URL is now a made up of a set of words including the Section name, Category name and title of the main content item. Unfortunately, the URL doesn't work. That is, this URL is not being redirected to the right Joomla page. Page 18The redirection occurs in that .htaccess file we saw earlier in this tutorial. Let's examine that file. Here's the file opened in Notepad after downloading in FileZilla. (You can of course use the tool of your choice to examine the file. If the file doesn't appear with formatting as shown, be sure that you've downloaded the file using "ASCII" transfer mode.) Page 19Scrolling down, we can see that there are two similar sections in the file:
The second section is "commented out". That is, it has "#" in front of each line. This tells the websever to ignore that line. Page 20We need to comment out the first section, and "comment in" the second section. Here we've done that. Page 21After saving our changes in the .htacess file and uploading, we can return to our site, and see that our SEF URLs now work. Page 22One more note on the .htaccess file: the indicated line: Options FollowSymLinks can cause problems on some servers. If your SEF URLs don't work on some pages, just comment this line out. Page 23The site now has Search Engine Friendly, that is, readable web page addresses. These web page addresses (URLs) are automatically created from the content title and other settings. The next tutorial will take a look at some of the options in the OpenSEF configuration. |