Difference between revisions of "Using Joomla Core SEF"

From JReviews Documentation
Jump to: navigation, search
Line 1: Line 1:
 
__TOC__
 
__TOC__
  
 +
== Enabling Joomla Core SEF URLs ==
  
== Default Joomla URLs ==
+
To make the URLs look nicer, you can enable Joomla core SEF:
 +
*Go  to Joomla Global Configuration, and on first tab set '''Search Engine  Friendly URLs''' and '''Use Apache mod_rewrite''' to '''Yes'''. 'Add  suffix to URLs' is optional.
 +
[[File:JoomlaCoreSEF.png]]
  
Examples of default non-SEF URLs:
+
*Next go to the root folder of your site and rename '''htaccess.txt''' file to '''.htaccess'''
 +
 
 +
 
 +
== URLs of Listings (Articles) ==
 +
*example of the default non-SEF URL:
 +
**http://example.com/index.php?option=com_content&view=article&catid=8:smartphones&id=8:nokia-5800-xpressmusic
 +
*if you enabled Joomla Core SEF, the url of that listing should look like:
 +
**http://example.com/products/8-smartphones/9-samsung-i900-omnia or
 +
**http://example.com/smartphones/8-nokia-5800-xpressmusic
 +
*if you enabled Joomla Core SEF but your URLs have ''/component/content/'' in URL like this:
 +
**http://example.com/component/content/8-smartphones/9-samsung-i900-omnia that means that you haven't created the [[Creating Required Joomla Menu Items|Required Joomla Menu Items]]
  
  
'''Content Article:'''
 
*http://example.com/index.php?option=com_content&view=article&catid=8:smartphones&id=8:nokia-5800-xpressmusic
 
  
  
Line 17: Line 28:
 
'''Jreviews click2search pages (tags):'''
 
'''Jreviews click2search pages (tags):'''
 
*http://example.com/index.php?option=com_jreviews&Itemid=6&url=tag/brand/Nokia_m6/
 
*http://example.com/index.php?option=com_jreviews&Itemid=6&url=tag/brand/Nokia_m6/
 
 
== Enabling Joomla Core SEF URLs ==
 
 
To make the URLs look nicer, you can enable Joomla core SEF:
 
*Go to Joomla Global Configuration, and on first tab set '''Search Engine Friendly URLs''' and '''Use Apache mod_rewrite''' to '''Yes'''. 'Add suffix to URLs' is optional.
 
[[File:JoomlaCoreSEF.png]]
 
 
*Next go to the root folder of your site and rename '''htaccess.txt''' file to '''.htaccess'''
 
 
 
After you refresh your site, URLs will be something like this:
 
 
'''Content Article:'''
 
*http://example.com/component/content/8-smartphones/9-samsung-i900-omnia
 
  
  
Line 42: Line 38:
  
  
URLs are nicer, but the Content Article URL is still too long. We should get rid of /component/content part.
 
 
So, instead of:
 
*http://example.com/component/content/8-smartphones/9-samsung-i900-omnia
 
 
you can have:
 
*http://example.com/products/8-smartphones/9-samsung-i900-omnia
 
 
or:
 
*http://example.com/smartphones/8-nokia-5800-xpressmusic
 
 
 
To have those type of URLs, it is required to create Joomla Article Section/Category menu items.
 
 
 
== Creating Joomla Article Section/Category Menu Items ==
 
 
'''Article Section/Category menu items are required for correct, and nicer, Joomla SEF urls for article pages.''' And also if you want your articles (listings) to inherit the modules from the Section/Category list pages. Without those menu items, modules will be lost when you click on article detail page.
 
 
You can create those menu items in a hidden menu so they will not be displayed on your site, because it is better to have JReviews Section/Category menu items for your navigation.
 
 
 
*Go to Joomla Menu Manager and create a new Menu: enter the '''Unique Name''' and '''Title''' (for example "SectionMenus" or "HiddenMenus", ...), but leave the '''Module Title''' empty, so that the module for this menu will not be created. Or you can create the module, but make it unpublished.
 
 
*After the menu is created, click on its name and create the menu items:
 
**If you create "Section Blog Layout" menu items for all your sections, your article URLs will look like this:
 
***http://example.com/section-name/id-category-name/id-article-title
 
**If you create "Category Blog/List Layout" menu items for all your categories, your article URLs will look like this:
 
***http://example.com/category-name/id-article-title
 
**You probably have a lot more categories than sections, so creating Section menu items will be faster.
 
 
*After you created all your menu items, go to JReviews component page and click on "Clear Cache" link in the left menu.
 
 
 
Now your URLs will be much nicer and modules assigned to Section/Category list pages will not be lost when you view article (listing) detail pages.
 
  
  
Line 83: Line 44:
  
 
We recommended using Joomla's Core SEF to minimize possible performance impact of 3rd part SEF extensions.  
 
We recommended using Joomla's Core SEF to minimize possible performance impact of 3rd part SEF extensions.  
 +
  
  
Line 89: Line 51:
 
[[Category:SEF]]
 
[[Category:SEF]]
 
[[Category:URLs]]
 
[[Category:URLs]]
[[Category:ItemIDs]]
 
[[Category:Modules]]
 

Revision as of 18:38, 15 August 2010

Enabling Joomla Core SEF URLs

To make the URLs look nicer, you can enable Joomla core SEF:

  • Go to Joomla Global Configuration, and on first tab set Search Engine Friendly URLs and Use Apache mod_rewrite to Yes. 'Add suffix to URLs' is optional.

JoomlaCoreSEF.png

  • Next go to the root folder of your site and rename htaccess.txt file to .htaccess


URLs of Listings (Articles)



JReviews menu item:


Jreviews click2search pages (tags):


JReviews menu item:


Jreviews click2search pages (tags):



With Joomla Core SEF it is not possible to remove ID numbers from URLs. For that, you need to use one of Joomla SEF extensions like sh404SEF or SEF Advance (only those two are supported by JReviews).

We recommended using Joomla's Core SEF to minimize possible performance impact of 3rd part SEF extensions.