More About Me...

Welcome to cross-bytes blog, We provide a professional range of IT solutions and services targeted at small, medium and big sized organisations. We're located in Indonesia.

Another Tit-Bit...

Our team of multi disciplined personnel and the dynamic nature of the knowledgebase allows us to provide a complete range of solutions befitting any organisation.

SEF for joomla

Are you built website with Joomla cms? If yes you should know that the default path of Joomla URL are not search engine friendly and easier to know the engine and extension. For example http://www.id-joomla.com/component/option,com_frontpage/Itemid,1/
Of course the search engine hate dynamic pages with lots of parameters.

In this tutorial we describe specific Joomla techniques to convert the above example to this http://www.id-joomla.com/home.html

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

  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.

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.
  5. Always remember that you do not have to include your home URL in any of the friendly URLs. The component will do it automatically.

Leave a Reply

Ad Spot Ad Spot Ad Spot

MYSPONSORS

    website counter
    website counter