All credit to this article goes to Ahmad from Alfy Studio. Great work!!
sh404SEF is a Joomla! extension helps you creating better SEF URLs. It’s full of features and parameters that helps you to acheieve the format you want for your Joomla! website. On July 24th 2008 the JED editors announced that sh404SEF has been added to the editors’ pick. Development cycle continued and sh404SEF became one of the must have extensions.
Bascially an article will have a URL similar to this :
“http://localhost/index.php?option=com_content&view=article&id=19″
With joomla built-in SEF URLs enabled the URL will be similar to :
“http://localhost/category-name/19-article-title”
That looks much better and more human readable. Better for SEO too! It’s effective yet very limited! We don’t have much control over the URL format. For example there is no way to hide the article-id prefixed to the title. It doesn’t tell the visitor any useful thing; why to use it?
For a lot of things we need extensions to handle SEF URLs. We need more control and more options. When using sh404SEF an article should have a URL similar to this one :
“http://localhost/category-name/article-title.html”
Similar to Joomla’s built-in URL but better. You can set the parameters to show/hide the section/category, use an extension like .html and more. There is a nice feature in sh404SEF helps adding a unique-id for the URL. When enabled the URL should look similar to :
http://localhost/2008081219/category-name/article-title.html”
That unique id is created using the date of creation (yyyy-mm-dd) added to the article id. Well that could be of great value with minor modification to modify the output to something better! Take a look at the following :
“http://localhost/category-name/2008/08/12/article-title.html”
Even better, This URL tells a story! Obviously that’s a date of creation and not just a weird number! To create such a format we need to modify sh404SEF files. To get started :
Lets digg into the code. Start by editing the file:
/components/com_sh404sef/sef_ext/com_content.php
That’s the file responsible for handling the URLs for the contents. Find and delete the following code:
Save and close the file. Open:
/components/com_sh404sef/sef_ext.php
Find this line :
Insert this code after :
We’ve only modified the last line from the code we removed from the first file.
Save the file and now purge SEF URLs you have from the sh404SEF control panel. Try reloading your website and see how the URLs look now 
If you’ve better ideas or modifications please share it! Have a nice day!
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Apr | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||