This thread got me out of a 2 week bind - so thanks very much!
To return the kindness, here is a very simple solution to adding categories, sections, product names, your pets names, and whatever else you want - to your SEF urls ... I could have queried the database and automatically filled in category, section_id, etc but this example keeps it simple.
In includes\sef.php
Right before ... " if ($mosConfig_sef) { "
Add as many of these lines as you like.. I have replaced the standard SEF URL for "Contact Us" as a simple example that should work immediately for everyone...
$_SERVER['REQUEST_URI'] = str_replace( "Contact_Us", "component/option,com_contact/Itemid,3",$_SERVER['REQUEST_URI']) ;
and then down near the end of the file,
$string = str_replace( "component/option,com_contact/Itemid,3","Contact_Us",$string) ;
immediately before :
return $mosConfig_live_site."/index.php/".$string; (note that I've incorporated websmurf's hack - soon to be implemented in 1.1)
The URL looks as follows:
http://www.yourwebsite.com/index.php/Contact_Us/If you are wondering how I knew what to place in the "Contact_Us" string, I just clicked on "Contact Us" in the main menu and copy and pasted it here. So simple its gross and when I have more time, I can pull Category Names, Section Names, Products, etc from the database so it all works automatically.
If you don't want to have "index.php" in your url, just do what DE suggested above and add the following line into your .htaccess:
ErrorDocument 404 /index.php - now your URL is simply
http://www.yourwebsite.com/Contact_Us/Now you can replace gobbley-gook URLs with very friendly human language for any link on your site.
Thanks again Websmurf - couldn't have done it without you. (Why do I get the impression from these forums that no-one wants this solution found ? - Think I'll flip on "conspiracy theory" tonight, X-files?, ...)
Bon nuit et bon chance!
Ed