SEF URLs in J! 1.5.1

Moderator: mcsmom

Post Reply
brother7
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Sep 28, 2005 10:23 am

SEF URLs in J! 1.5.1

Post by brother7 » Wed Feb 27, 2008 6:03 am

The primary reason for having search engine friendly URLs is to force keywords to appear in the URL which, from a search engine's point of view, increases the page's relevance for these keywords.

Here's a step-by-step guide on how to implement SEF URLs in J! 1.5.1
  1. Install J! 1.5.1.

    J! 1.5.1 introduced a new setting in configuration.php which may help solve problems associated with turning on SEF URLs. For some information about the new setting $live_site (and a potential problem when upgrading from J! 1.5 to 1.5.1), read this topic.
  2. In Global Configuration, set Search Engine Friendly URLs = Yes and save.

    This is the main Joomla setting for search engine optimization so it's important to get this part working first, before anything else. When turned on, this setting will use an article's Title Alias to form the URL. If the Title Alias is missing, the article's Title is used.

    If you encounter problems, try modifying the $live_site setting in configuration.php.
    If Joomla is installed in the root (ie, inside public_html or htdocs), set $live_site to / or http://www.yourdomain.com or http://yourdomain.com.
    If Joomla is installed in a subdirectory (ie, /joomladir), set $live_site to /joomladir or http://www.yourdomain.com/joomladir or http://yourdomain.com/joomladir.

    If this step is successful, your URLs will change from

    Code: Select all

    http://www.yourdomain.com/index.php?option=com_content&view=article&id=19&Itemid=27
    to

    Code: Select all

    http://www.yourdomain.com/index.php/joomla-overview
  3. In Global Configuration, set Add suffix to URLs = Yes and save.

    I think this setting is for cosmetic purposes only, but I'm not an SEO expert so don't take my word for it. If you successfully set this to Yes, your URLs will change from

    Code: Select all

    http://www.yourdomain.com/index.php/joomla-overview
    to

    Code: Select all

    http://www.yourdomain.com/index.php/joomla-overview.html
  4. In Global Configuration, set Use Apache mod_rewrite = Yes and save.

    Before completing this step, rename the file htaccess.txt to .htaccess. Doing this is a necessary part of this step.

    Like step 3, I think this setting is for cosmetic purposes only. Again, I'm not an expert so don't take my word for it. If this step is successful, the URL gets shortened from

    Code: Select all

    http://www.yourdomain.com/index.php/joomla-overview.html
    to

    Code: Select all

    http://www.yourdomain.com/joomla-overview.html
Personally, for my own Joomla sites, I perform all 4 steps. I consider steps 1 and 2 as required, steps 3 and 4 as optional for good SEO. Unless someone provides a compelling reason, I think steps 3 and 4 are for cosmetics only and don't greatly affect search engine optimization.

Finally, I'd like to make the following recommendation: Take control of your search engine relevance by specifying a Title Alias for all your articles. I alluded to this in step 2. By doing this, you get to choose exactly what appears in the SEF-optimized URL. I suggest using alphanumeric characters (no special characters or punctuation marks) with hyphens as separators. For example, joomla-overview is a good title alias.

Hope this helps.

Post Reply