Difference between revisions of "Using Joomla Core SEF"
From JReviews Documentation
Line 27: | Line 27: | ||
*example of the default non-SEF URL: | *example of the default non-SEF URL: | ||
**http://example.com/index.php?option=com_jreviews&Itemid=6 | **http://example.com/index.php?option=com_jreviews&Itemid=6 | ||
− | *when Joomla Core SEF is enabled, the | + | *when Joomla Core SEF is enabled, the URL should look like this (menu item title alias is used): |
**http://example.com/most-recent-listings | **http://example.com/most-recent-listings | ||
Line 33: | Line 33: | ||
== URLs of JReviews Section/Category pages == | == URLs of JReviews Section/Category pages == | ||
*if you created only one JReviews menu item, for example [[Directory Page Layout|Directory]], the SEF URLs of Sections and Categories on that page would look like this: | *if you created only one JReviews menu item, for example [[Directory Page Layout|Directory]], the SEF URLs of Sections and Categories on that page would look like this: | ||
− | **section | + | **section URL: http://example.com/directory/Products/products_s2_m5/ |
− | **category | + | **category URL: http://example.com/directory/Products//products/smartphones_c8_m5/ |
*better URLs of sections and categories are possible only if you create JReviews Section List menu items for all your sections and JReviews Category List menu items for all your categories. Then URLs from above example would look like this on any page: | *better URLs of sections and categories are possible only if you create JReviews Section List menu items for all your sections and JReviews Category List menu items for all your categories. Then URLs from above example would look like this on any page: | ||
− | **section | + | **section URL: http://example.com/products |
− | **category | + | **category URL: http://example.com/products/smartphones |
Line 43: | Line 43: | ||
*example of the default non-SEF URL for the jr_brand custom field: | *example of the default non-SEF URL for the jr_brand custom field: | ||
**http://example.com/index.php?option=com_jreviews&Itemid=6&Itemid=6&url=tag/brand/Nokia/criteria:4/ | **http://example.com/index.php?option=com_jreviews&Itemid=6&Itemid=6&url=tag/brand/Nokia/criteria:4/ | ||
− | *if you enabled Joomla Core SEF, the | + | *if you enabled Joomla Core SEF, the URL should look like this: |
**http://example.com/component/jreviews/tag/brand/Nokia/criteria:4/ | **http://example.com/component/jreviews/tag/brand/Nokia/criteria:4/ | ||
− | *this | + | *this URL can be further improved by modifying the Click2Search URL of that field: |
**go to [[Fields Manager]] and click on the field's name | **go to [[Fields Manager]] and click on the field's name | ||
**click on <span style="color: red">[Click here for Advanced Options]</span> link to expand advanced options | **click on <span style="color: red">[Click here for Advanced Options]</span> link to expand advanced options | ||
Line 51: | Line 51: | ||
***<span style="color: blue">index.php?option=com_jreviews&Itemid={ITEMID}&url=tag/{FIELDNAME}/{FIELDTEXT}/criteria:{CRITERIAID}/</span> | ***<span style="color: blue">index.php?option=com_jreviews&Itemid={ITEMID}&url=tag/{FIELDNAME}/{FIELDTEXT}/criteria:{CRITERIAID}/</span> | ||
**replace the {ITEMID} with an ID of one of JReviews menu items. Then the ''Title Alias'' of that menu item will be used instead of ''/component/jreviews/'' in the URL of this custom field | **replace the {ITEMID} with an ID of one of JReviews menu items. Then the ''Title Alias'' of that menu item will be used instead of ''/component/jreviews/'' in the URL of this custom field | ||
− | **for example, I used the ID of the Products section and the Click2Search page of the Brand custom field | + | **for example, if I used the ID of the Products section and the Click2Search page of the Brand custom field, the SEF URL now would be: |
***http://example.com/products/tag/brand/Acer/criteria:2/ | ***http://example.com/products/tag/brand/Acer/criteria:2/ | ||
Revision as of 22:02, 31 January 2011
Contents
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.
- 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:
- if you enabled Joomla Core SEF, the URL of that listing should look like:
- 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 Required Joomla Menu Items
- with Joomla Core SEF it is not possible to remove articles ID numbers from URLs. To remove them, you need to use one of Joomla SEF extensions: 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 party SEF extensions.
URLs of JReviews Menu Items
- example of the default non-SEF URL:
- when Joomla Core SEF is enabled, the URL should look like this (menu item title alias is used):
URLs of JReviews Section/Category pages
- if you created only one JReviews menu item, for example Directory, the SEF URLs of Sections and Categories on that page would look like this:
- better URLs of sections and categories are possible only if you create JReviews Section List menu items for all your sections and JReviews Category List menu items for all your categories. Then URLs from above example would look like this on any page:
- section URL: http://example.com/products
- category URL: http://example.com/products/smartphones
URLs of JReviews Click2Search Pages (tags)
- example of the default non-SEF URL for the jr_brand custom field:
- if you enabled Joomla Core SEF, the URL should look like this:
- this URL can be further improved by modifying the Click2Search URL of that field:
- go to Fields Manager and click on the field's name
- click on [Click here for Advanced Options] link to expand advanced options
- this is the default Click2Search URL:
- index.php?option=com_jreviews&Itemid={ITEMID}&url=tag/{FIELDNAME}/{FIELDTEXT}/criteria:{CRITERIAID}/
- replace the {ITEMID} with an ID of one of JReviews menu items. Then the Title Alias of that menu item will be used instead of /component/jreviews/ in the URL of this custom field
- for example, if I used the ID of the Products section and the Click2Search page of the Brand custom field, the SEF URL now would be: