URL Rewrite Problem

I was having problems with using the SEO settings (in the Global Configuration panel) to write Search Engine Friendly (SEF) URLs in a Joomla installation. I searched the forums for an answer by Googling “Joomla URL rewrite”. After a long search the solution (in the screenshot below) proved very simple:

My Joomla installation was not in the public_html directory and I needed to change the .htaccess file to reflect this.