Home / Joomla URLs / Joomla URL Week Part 2 - Default SEF URLs 
Joomla URLs
Apr
02
2007
Joomla URL Week Part 2 - Default SEF URLs
Written by Steve Burge   
Avatar

This week we're trying to answer one of the most common questions in the Joomla world: "What is the best URL setup for Joomla and why?"

Yesterday I talked about default Joomla URLs and why they are a bad idea for your Joomla site. Today is Part 2 of the quest we're going to look at the default Joomla Search Engine Friendly URLs.

Lets see whether this set up is any more useful....

What Do the URLs Look Like?

  • /content/view/5/6/
  • /component/option,com_contact/Itemid,3/
  • /component/option,com_newsfeeds/Itemid,7/

How Do I Set Up This Option?

There are two steps you need to take after installing Joomla.

  • Login to your FTP account and rename htaccess.txt to .htaccess.
  • After you've logged in to the administrator section, go to Site >> Global Configuration >> SEO >> Search Engine Friendly URLs = Yes

sef-config.gif

Understanding Joomla SEF URLs

If you've read through the first part of our series on Joomla URLs, you'll be familiar with the building blocks used to create the URLs.

The Joomla SEF URL setup is an improvement over the basic URLs in two ways:

  • It produces URLs that are more compact
  • It removes many of odd characters such as ? and &.
Default URLs
Default SEF URLs

/index.php?option=com_content

&task=view&id=5&Itemid=6

/content/view/5/6/
/index.php?option=com_weblinks&Itemid=23/component/option,com_weblinks/Itemid,23/
/index.php?option=com_contact&Itemid=3/component/option,com_contact/Itemid,3/

?

Advantages

  • They are an improvement over Joomla's default URLs.

Disadvantages

  • The SEF URLs are still meaningless for visitors and hard to remember.
  • The SEF URLs are often no shorter than the default URLs. The only real advantage can been seen with content items.
  • As with the regular URLs, Itemids are not hidden, making it possible to have an infinite number of URLs pointing to the same content. This is a nightmare when it comes to Duplicate Content. All of these URLs would be valid:
    • /content/view/5/1/
    • /content/view/5/2/
    • /content/view/5/3/
    • /content/view/5/4/
    • /content/view/5/5/ etc.
  • These URLs are really, really common. Lets do a quick Google search to find out how common some of these URLs are:

When Should You Use This Option?

Only if you are on a Windows Server.

There are too many disadvantages to this setup. Instead, keep reading over the next four days as we review the main Search Engine Friendly URL components for Joomla and help you choose one of them to improve your site.

 

Comments  

 
#1 Klaus Nitsche 2007-04-01 16:28
Quote:
When Should You Use This Option?
Only if you are on a Windows Server or do not have mod_rewrite available.

This statement is wrong, you need mod_rewrite even for low-quality URLs like these with Joomla.

But it's not worth the trouble. You might as well use standard Joomla URLs such as index.php?option=com_content&id=blah&Itemid=blah. Doesn't matter a thing with the search engines nowadays. Joomla's built-in "SEF" URLs are not especially search-engine "friendly" any more, nor are they user-friendly. Your site will rank real, real low.

The best thing is real, meaningful URLs, which you're obviously coming to in your next articles. Nothing else. Some progress to be observed here in Joomla 1.5, finally, after all these years, while basically every other CMS on the planet has pretty URLs built in by now. ;-)

Kind regards,
Zorro
Quote
 
 
#2 Steve Burge 2007-04-01 17:33
Hi Zorro

Thanks for catching that - its fixed now.

Its been a real pleasure to go through the three SEF components for this series of articles, but I can't say the same about the default Joomla URLs. They really are an ugly leftover from the Mambo days.

For those people interested in the direction of Joomla URLs in version 1.5: http://forum.joomla.org/index.php/topic,140836.0.html
Quote
 
 
#3 Brian Teeman 2007-04-02 09:13
You might also want to read http://forum.joomla.org/index.php/topic,150739.0.html which shows a serious unresolved(yet) issue with the new urls
Quote
 
 
#4 Steve Burge 2007-04-02 09:16
Thanks for the link Brian

I keep on intending to do a "for the layman" post about all the upcoming changes in URLs with Joomla 1.5 but doesn't seem like the best time to do it with things still so much up in the air.
Quote
 
 
#5 Amy Stephen 2007-04-02 10:33
Brian -

As you know, Johan jumped through all kinds of hoops to make people happy by even taking on SEF URLs for v 1.5. We are not even at Beta 2, yet! Steve's article, to the best of my knowledge, appears to be about J! v 1.0.x capabilities. Why are you even pointing this out on Steve's blog?

Of course issues will arise with brand new code that we are testing! Certainly, we don't want Johan to drop back to the parameterized URLs because we face an issue with new code. Let's have a little faith, extend our support and give credit where credit is due!

Transliteration is a far bigger challenge, IMO. Have you see Yuri from Russia's response to this challenge? In six posts, he did more than point out a potential problem - he contributed code (forum.joomla.org/index.php/topic,140836.msg756255.html#msg756255)! (I'll bet he didn't blog about it anywhere, either!)

I think Johan might find that type of "help" helpful! ;-)

Amy :-)
Quote
 
 
#6 Steve Burge 2007-04-02 10:51
Hi Amy

Thats right... this is all about 1.0.x - look for a revised version of these articles when Joomla 1.5 Stable comes out.

I agree with you about getting our hands dirty to help out, although I don't think Brian did more than point out something a little off-topic. Joomla definitely seems to be at a major crossroads right now... best wishes to all the core team.
Quote
 
 
#7 Amy Stephen 2007-04-02 16:55
Best wishes to the Joomla! core team and to our developers. Hang in there - you are almost there! :-)
Quote
 
 
#8 CR 2007-06-10 01:29
May I also humbly suggest that you use "-" instead of "_" in the URL. It has been widely accepted that making a simple change like this can help websites get better SERPs as google seems to like "-" better than the former.
Quote
 
 
#9 Steve Burge 2007-06-10 07:43
No problem - see the related advice here:
http://www.alledia.com/blog/search-engine-optimisation-%28seo%29/dashes-or-underscores?-setting-up-your-joomla-seo/
Quote
 
 
#10 Josephsw 2008-09-10 04:26
How to change base URL of Joomla for SEF URL?
Quote
 

Add comment


Security code
Refresh