The Ultimate Joomla SEF URL Guide |
| September 23, 2010 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a 4 part guide to setting up your URLs correctly in Joomla. It's just about the most detailed guide you'll find anywhere online, hence the name! We present you with the Ultimate Joomla SEF URL Guide:
Introduction: What Are Search Engine Friendly URLsVery simply - they are URLs that contain information:
Part 1: Why Use Search Engine Friendly (SEF) URLs?Better for Search EnginesSearch for keywords in Google and they'll be highlighted whether they appear in the page title, description, domain or ... the URL. Check out this search for in Google:
In this SEOMoz study over 30 SEO experts were polled on the most important factors in ranking well. Coming in at number #6 ... "Keyword Use in Page URL" Better for Humans
Better for You When You Move Your SiteThe way I often try to explain this .... Imagine if you had a coffee shop with a steady stream of customers. One day you shut your doors and moved to the other side of town. Imagine how many of them would bother to travel the extra 20 minutes to visit you. Now imagine that you didn't even put a note on the door telling them where you'd gone. That's essentially what most people do when they migrate sites. They break all their URLs and often don't even bother to redirect them. From my experience, how people manage the URLs during a migration has a huge effect on visitors numbers:
Now imagine how much easier it is to migrate /about-us/ and /contact-us/ URLs than it is to migrate URLs like this: index.php?option=com_content&task=view&id=37 What we're going to do now is show you how to create search engine friendly URLs in Joomla. Part 2: How to Set Up Joomla's Search Engine Friendly URLsWhen you first install a Joomla site, the URLs will look like this: In order to improve those URLs, we're going to the Administrator area of our Joomla site. Click on Site then Global Configuration. ![]() You'll now see a screen like the one below on the right-hand side: ![]() Under "SEO Settings" there are three options. Here is how the three options will change your URLs if you set them to yes:
My personal preference is to check Options 1 and 2. I don't see the point of adding .html on the end of URLs because it makes them longer and besides: we're not building HTML sites any longer. Much better, wouldn't you agree? Where Do These URLs Come From?Almost everywhere you go in Joomla you'll see a field called "Alias". This is basically means "URL". If you don't fill it in, Joomla will automatically do it for you. It will clean up any usual punctuation and fill in in spaces with a hyphen. If you do want to fill it in, you can choose your own URL for the page. One common reason for doing this is to have a long interesting title on the page: "Ten Great Reasons to Use Joomla's Search Engine Friendly URLs" but still have a short URL such as "joomla-sef". Inside articles: ![]() Inside menu links: ![]() Inside weblinks: ![]() Part 3: Troubleshooting Joomla's SEF URLs![]() Did that get your attention? Changing these settings is useful, but it is the most common way to cause temporary problems with your site. You'll know that you've made a mistake if your site start's looking like the image above. However, don't worry, there's no real harm done. If you see this, immediately go back to Administrator >> Site >> Global Configuration and change all the settings to "No". Your site will be back to normal. However, the solution is not always straightforward and each hosting company is a little different. Here are some ways to fix the problem. I'm going to put them in order - try the first solutions first then move on the trickier solutions if you still have problems. 1) Rename the htaccess.txt file![]() Login via a file manager so that you can access your Joomla files. You're looking for a file called htaccess.txt that is the main area of your Joomla files. You're going to do just one thing: rename that file from htaccess.txt to .htaccess: ![]() Now go and check whether your URLs are working. If not, let's move on to the next step: 2) Check Your ServerThis will check to see whether your server is correctly set up with a feature called mod_rewrite which, well ... rewrites your URLs. 1) Go to Administrator >> Site >> Global Configuration and turn on all 3 SEO settings. 4) Point your browser to: http://www.yourdomainame.com/joomla.html Note: if your site is located in subdomain example "test" you need to insert in .htaccess as: That brings us to the next point: 3) Are You in a Sub-folder?![]() If your Joomla site is located in the sub-folder you may have another change to make. 3) Change this line to remove the hash mark and include your folder name: If that doesn't work, you could also try simply removing the hash mark: Part 4: Using an Extra Search Engine Friendly URL ExtensionIt is possible to get even greater control and flexibility over your Joomla URLs by using a extension. Be warned, these components will also introduce extra complexity, so you they are only recommended if you are in a competitive industry and rankings are very important for you. Most sites will be fine with the basic Joomla SEF URLs that we talked about above. SEF URL extensions go from very simple to very complex. If you are moving an existing, well-established site to Joomla, you would be well advised to use one of these to mimic your current URL structure so that you can keep your URLs unchanged. Joomla 1.5 SEO Extensions
|
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright © 2012 Open Source Training, LLC. All rights reserved.
Comments
by the way, is it possible or convenient for you to write a subject on how to remove the number in sef-url.(see below for example).
abc.com/.../32-for-n-of.html
Note: "make-it-clear" and "for-n-of" are both the alias of article titles.
as you can see, number 5 and 32 are automatically become part of sef-url, it seems really stupid with numbers, so I terribly want to remove it, :-)
I'm afraid that's an inherent part of Joomla's default SEF URLs.
You'd need an SEF URL extension in order to remove them.
you are right, it's a built-in sef-url feature in Joomla. I search internet and find one plug-in called "HP Routre".
that plug-in is supposed to deal with this problem, but it is too old and with too much bad remarks.
maybe a sef-url extension is more handy. thanks again
Bill
First of all thank you for your tutorials which I find very very helpfull.
Some people told me that in order to optimize my joomla SEF I showl used a subdomain for each language (or beter a domain with the righ ending .uk .es) and that is not SEF optimal to used the extensions for several languages
is this true? should I get into the trouble of using several domains for each language? the language extensions in joomla ares so practical I would regret no to use them
When will you launch a tutorial of how to place and use addsense in a joomla web page?
Greetings
mike
RSS feed for comments to this post