Here's a step-by-step guide on how to implement SEF URLs in J! 1.5.1
- Install J! 1.5.1.
J! 1.5.1 introduced a new setting in configuration.php which may help solve problems associated with turning on SEF URLs. For some information about the new setting $live_site (and a potential problem when upgrading from J! 1.5 to 1.5.1), read this topic. - In Global Configuration, set Search Engine Friendly URLs = Yes and save.
This is the main Joomla setting for search engine optimization so it's important to get this part working first, before anything else. When turned on, this setting will use an article's Title Alias to form the URL. If the Title Alias is missing, the article's Title is used.
If you encounter problems, try modifying the $live_site setting in configuration.php.
If Joomla is installed in the root (ie, inside public_html or htdocs), set $live_site to / or http://www.yourdomain.com or http://yourdomain.com.
If Joomla is installed in a subdirectory (ie, /joomladir), set $live_site to /joomladir or http://www.yourdomain.com/joomladir or http://yourdomain.com/joomladir.
If this step is successful, your URLs will change fromtoCode: Select all
http://www.yourdomain.com/index.php?option=com_content&view=article&id=19&Itemid=27
Code: Select all
http://www.yourdomain.com/index.php/joomla-overview
- In Global Configuration, set Add suffix to URLs = Yes and save.
I think this setting is for cosmetic purposes only, but I'm not an SEO expert so don't take my word for it. If you successfully set this to Yes, your URLs will change fromtoCode: Select all
http://www.yourdomain.com/index.php/joomla-overview
Code: Select all
http://www.yourdomain.com/index.php/joomla-overview.html
- In Global Configuration, set Use Apache mod_rewrite = Yes and save.
Before completing this step, rename the file htaccess.txt to .htaccess. Doing this is a necessary part of this step.
Like step 3, I think this setting is for cosmetic purposes only. Again, I'm not an expert so don't take my word for it. If this step is successful, the URL gets shortened fromtoCode: Select all
http://www.yourdomain.com/index.php/joomla-overview.html
Code: Select all
http://www.yourdomain.com/joomla-overview.html
Finally, I'd like to make the following recommendation: Take control of your search engine relevance by specifying a Title Alias for all your articles. I alluded to this in step 2. By doing this, you get to choose exactly what appears in the SEF-optimized URL. I suggest using alphanumeric characters (no special characters or punctuation marks) with hyphens as separators. For example, joomla-overview is a good title alias.
Hope this helps.