Book Image

Learning Joomla! 1.5 Extension Development

Book Image

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (17 chapters)
Learning Joomla! 1.5 Extension Development
Credits
About the Author
About the Reviewer
Preface

Generating search-engine-friendly links


Currently, the links to our reviews are generated as long GET strings, such as http://localhost/joomla/index.php?option=com_resaurants&id=1&view=single&Itemid=2. Our critics mentioned that they hate seeing links like these. Also, these links are not very helpful for search engines attempting to index our site. It would be preferable to have a link like http://www.ourdomain.com/reviews/view/1 instead. To accomplish this, we will define a route to both generate and decode Search-Engine-Friendly (SEF) links. Before we write any code, we will have to go to the administrator backend and enable SEF links. Go to Site | Global Configuration and make sure that Search Engine Friendly URLs is set to Yes. If you are using Apache as your web server and have mod_rewrite enabled, you can also set Use Apache mod_rewrite to Yes. This will remove index.php entirely from your URLs. With mod_rewrite enabled, the SEO Settings section of your Global Configuration...