Joomla : Extensions    The OpenSEF Component  

Page 1


This 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 2


Here's the OpenSEF site (as of May 2006). We'll click on Downloads.

  Click on the image for page view.




Page 3


We'll choose the OpenSEF Component.

  Click on the image for page view.




Page 4


As 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.

  Click on the image for page view.




Page 5


Now 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.

  Click on the image for page view.




Page 6


We'll save this file to the Windows desktop. (Needless to say, if you are not using Windows, you can save the file somewhere else.)

  Click on the image for page view.




Page 7


Let's log in to the Joomla Administrator application. Select Installers - Components.

  Click on the image for page view.




Page 8


  1. Browse to wherever you saved the OpenSEF package.
  2. Click on Upload & Install.
  Click on the image for page view.




Page 9


Installation 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..

  Click on the image for page view.




Page 10


Joomla has an SEO feature built in. We need to turn that on first. Choose Site - Global Configuration.

  Click on the image for page view.




Page 11


In Global Settings:

  1. Click on the SEO (Search Engine Optimization) tab.
  2. Click "Yes" for Search Engine Friendly URLs.
  3. A popup reminds us to rename the htaccess.txt file. We'll do that in the next step.  (Click OK).
  4. Click Apply.
  Click on the image for page view.




Page 12


Now 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.

  Click on the image for page view.




Page 13


Here 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).

  Click on the image for page view.




Page 14


  1. This URL used to be http://www.nycircuits.com/index.php?option="com_content"&task="view"&id="12"&Itemid="26"
  2. Now it is much shorter.

However, the URL still does not have meaningful keywords. That is what we'll get with OpenSEF.

  Click on the image for page view.




Page 15


Returning to the Joomla admin panel, we'll select the pulldown: Components - OpenSEF - Configuration.

  Click on the image for page view.




Page 16


We'll change the Enabled setting to Yes and then Save.

  Click on the image for page view.




Page 17


Returning 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.

  Click on the image for page view.




Page 18


The 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.)

  Click on the image for page view.




Page 19


Scrolling down, we can see that there are two similar sections in the file:

  1. Standard SEF Section
  2. 3rd Party or Core SEF Section

The second section is "commented out". That is, it has "#" in front of each line. This tells the websever to ignore that line.

  Click on the image for page view.




Page 20


We need to comment out the first section, and "comment in" the second section. Here we've done that.

  Click on the image for page view.




Page 21


After saving our changes in the .htacess file and uploading, we can return to our site, and see that our SEF URLs now work.

  Click on the image for page view.




Page 22


One 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.

  Click on the image for page view.




Page 23


The 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.




Text Author: Joe Orr  
Created with Screenbook Maker   Additional Trademark and Copyright Information