Skip to content

dart-creations.com

Advertisement
Home arrow Joomla arrow Joomla Tutorials arrow SEO / SEF for Joomla
Print E-mail
Friday, 06 April 2007

SEO / SEF for Joomla

Article Audience: Webmasters

The default Joomla installation comes with SEF (Search Engine Friendly) capabilities however these are not enabled. Both search engines (and probably users too) hate dynamic pages with lots of parameters example

http://www.yourcompany.com/index.php?option=com_content&task=section&id=6&Itemid=43

In this tutorial we describe specific Joomla techniques to conver the above example to this

http://www.yourcompany.com/section/category/title.html

Core SEF

Joomla default installation allows you to implement basic SEF addresses. This can be done by doing the following: Joomla SEO

  1. Using an FTP client or otherwise rename the htaccess.txt file in the root folder of the installation to .htaccess.
  2. Switch on SEF urls in the Global Configuration > SEO
  3. Switch on dynamic page titles, for your titles to reflect the title of your current content item.

This changes your original parameterized URLs to something like http://www.yourcompany.com/content/view/20/31/. This is much better than we had previously however, we are still quite a long way from our ideal scenario.

The sh404SEF component

The sh404SEF component is a great component for converting dynamic addresses to look like static addresses.

OpenSEF

  1. Download the component from the above page.
  2. Install the component as per standard procedure via the admin backend (Installers > Components > and choose the component zip file.
  3. Change your .htaccess file such that 3rd party SEF components are enabled:

########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]         ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section

########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]         ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section

  1. As can be seen in the above code the core SEF have been remarked (#), and the 3rd Party SEF have been enabled.
  2. Click on Components > sh404SEF > sh404SEF Configuration in the backed and enable the component. The rest of the options by default are mostly correct unless you have done any particular changes. You can investigate and set to your liking.
  3. Save the configuration and browse through all pages in the your website. On each access of a non-friendly url, the component creates a new friendly URL.
  4. If you don't like the addresses which have been created you can go to Components > sh404SEF > View / Edit SEF URLs and change them to your liking.
Always remember that you do not have to include your home URL in any of the friendly URLs. The component will do it automatically.

iJoomla SEO

As usual we like to follow up most of our tips with a recommendation for those who like to take the easy way out to optimizing their Joomla site for search engines.  iJoomla have a great SEO component, which now makes it easy to optimize your Joomla website without having to go through all the technical details. iJoomla SEO speeds up your optimization and takes away all the complication of SEO. As with all iJoomla products, this is another lovely and easy to use product. Give it a shot, we're sure you'll love it.

Joomla SiteMap

Joomla SEF Patch 

Site maps are great, once again both for users and for crawler's. The Joomap component is great component which allows you to create a Joomla site map quickly and easily from your menus. Installation and setting up only takes a couple of minutes and you get a great looking sitemap. Install the component via the normal installation, go to Components > Joomap > choose the menus which you want to get populated by the site map, you can tweak the CSS settings used to display and a number of other configurations and you're good to go. Just add a link to the component in one of your menus or anywhere you like for that matter.

Using headers H1, H2 for Titles

By default the core installation of Joomla shows the page / section / category / content item as a <td> with a CSS style for contentheading. This is not the ideal scenario for search engines. Search engines would rather see H1s, H2s etc, and the difference to the user is invisible. Therefore, to override this we have to hide each Page Title. Instead of displaying the page title, copy the title to the editor, and change the stlye to H1. And now you have an HTML header as the title. This has a drawback that your titles become static, because they are actually embedded in the content, however I think this is a small trade-off for the SEO advantage that we gain.

Comments
Search RSS
Ian Buhagiar   |88.203.97.xxx |2007-06-08 22:42:47
hi dart,

Great job in putting up this website.

It groups up a number of
technical issues together, which when implimented correctly make all the
difference in having a professional joomla site.

thanks!
Maik Kaune  - Great info, that did support m   |85.179.230.xxx |2007-07-05 00:00:18
Great info, that did "support" my first guess on creating my
content...

The bad thing, i did this H1-H3 at the first time, and thought it
was the wrong way, cause joomla had this two special Title/Alias fields and
other extensions used this entries... mmh.
Then i changed the whole content to
this method. Bad idea ;-)

Now i have to change them all over again...
phew!

The good thing: Now i am sure, i am doing it right.
CU!!!
René  - Great info. However.....   |82.74.90.xxx |2007-07-09 03:05:29
Some of the tips in this article can be done by a mambot.
This mambot changes
the title that your browser shows to reflect the content on the page.
It also
ads content related keywords and description in your metatags.
AND!!! Your
titles will use H2,H3 tags :-o
I know this sounds to good to be true but I have
installed it on my site and it works great!!!
You can check it out for
yourself... www.joomladesign.info
Go to a content page (one of the tutorials
for example) and look at the page title :o)
Btw... the mambot is called
JoomSEO.
I love it!!!

René
webmaster www.joomladesign.info
Maik Kaune  - JoomSEO   |85.179.224.xxx |2007-07-18 12:40:22
-> René
Many thanks for this great info. Though i am digging deep on the
extensions directory... i missed this piece of gold!

I changed my current
projects contents, before i read your comment... On the next project , i will
set it up for sure.

TIA!
CU
DART Creations  - JoomSEO   |85.232.196.xxx |2007-07-18 17:14:30
Yes, it does do some of the tips mentioned in this article. But it also seems
to litter the title with a whole host of keywords. Search engines (especially
Google), will consider that to be keyword spamming and you might be penalised.
Be careful when you use it. Remember that the best way of optimizing your site
for search engines is quality content and incoming links! Other tweaks which can
be done mostly manually are nowadays given little importance by search engines.
Marwen  - Thanks and other tricks   |199.243.239.xxx |2007-12-14 18:39:42
Great infos !

Thanks to all. In my case i am using ARTIOjoomsef, it can offer
the same result as sh404SEF.

You can change either the order of the page of the
site and page name :
"
It is good SEO practice to put the page title first
in your title tags, and then your site name. Unfortunately, by default, Joomla
places the site name first before the page title.

To change this, grab a copy
of the file /includes/joomla.php

Around line number 507, replace
this:

$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '.
$title : $GLOBALS['mosConfig_sitename'];

With this:

$this->_head['title'] =
$title ? $title .' - '. $GLOBALS['mosConfig_sitename'] :
$GLOBALS['mosConfig_sitename'];

From
www.chette.com
http://www.chette.com/main/content/ view/107/

"

Thanks to
all.

Marwen
rexkramer  - SEO SEF - Test and Config on   |Registered |2008-07-02 23:53:47
Hello, nice article.
I wonder how to setup and test SEF URLs in a local
environment (before or in the middle of a real production site).

I tried
sh404... on MAMP / MacOSX and when i activate it... the URLs and pages do not
work anymore. Is this "normal"? How do you do this? Any clues or
suggestions?

TIA!
DART  - SEO in a local environment   |Registered |2008-07-03 07:57:10
rexkramer,

I use XAMPP, and have figured out a way to use SEF URLs locally. I'd
be glad if you found an update and posted here.
rexkramer  - XAMPP - how to test SEO SEF se   |Registered |2008-08-17 21:56:18
Hi! I almost forgot where i posted this question ;-)
You were using XAMPP on
WIN... can you explain your solution or at least how XAMPP is rendering your
URLs? How looks or how starts your URL without SEF enabled?

Can you give some
more details... maybe i am able to deduce somethig from your experiences!?

TIA!
DART  - SEF on XAMPP   |SAdministrator |2008-08-22 18:48:25
Wooops,

there was a slight misspring in that comment. It should've been, I
HAVEN'T figured out a way
rexkramer  - re: SEO SEF - Test and Config on local server   |85.179.225.xxx |2009-02-22 00:25:12
rexkramer wrote:
Hello, nice article.
I wonder how to setup and test SEF URLs in a local
environment (before or in the middle of a real production site).

I
tried sh404... on MAMP / MacOSX and when i activate it... the URLs and
pages do not work anymore. Is this "normal"? How do you do this?
Any clues or suggestions?

TIA!


Any news on this??? TIA!
Erik Z  - I sue this component     |98.243.160.xxx |2009-03-11 20:53:21
I used this component on my site http://www.huntingfishingforum.com, it seems to work like a charm. The only con I have to it is it doesn't
add automatic meta description with major keywords. I wish it
did that, would be very nice if it did!
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Tuesday, 26 May 2009 )
 

Sponsors

Login Form






Lost Password?
No account yet? Register

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!


Generated in 0.31101 Seconds