Actions

Portal

Difference between revisions of "Search Engine Optimisation"

From Joomla! Documentation

m
m (Hutchy68 moved page Search Engine Optimisation to Portal:Search Engine Optimisation: landing pages are now portal pages)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{inuse}}
 
 
{| style="width:100%;" cellspacing="1"
 
{| style="width:100%;" cellspacing="1"
 
| class="home-tile" style="width:33%;" |  
 
| class="home-tile" style="width:33%;" |  
Line 7: Line 6:
 
</div>
 
</div>
 
<div style="display:inline-block; padding:.4em .5em; min-width:33%;">
 
<div style="display:inline-block; padding:.4em .5em; min-width:33%;">
;[[What_is_Search_Engine_Optimisation|What is Search Engine Optimisation]]
+
;[[Making your site Search Engine Friendly|Making your site Search Engine Friendly]]
 
;[[Making_your_site_Search_Engine_Friendly#Using_a_Sitemap|Using a Sitemap]]
 
;[[Making_your_site_Search_Engine_Friendly#Using_a_Sitemap|Using a Sitemap]]
;[[Making_your_site_Search_Engine_Friendly#Title_tag|Title Tag]]
+
;[[Making_your_site_Search_Engine_Friendly#Title_tag|Making the most of the title tag]]
;[[Making_your_site_Search_Engine_Friendly#Meta_Description|Meta Description]]
+
;[[Making_your_site_Search_Engine_Friendly#Meta_Description|How to write good meta descriptions]]
;[[Making_your_site_Search_Engine_Friendly#Keywords|Keywords]]
+
;[[Making_your_site_Search_Engine_Friendly#Keywords|Planning and using keywords]]
 
</div>
 
</div>
 
| style="padding-right:1.2em;" |
 
| style="padding-right:1.2em;" |
Line 21: Line 20:
 
<div style="display:inline-block; padding:.4em .5em; min-width:33%;">
 
<div style="display:inline-block; padding:.4em .5em; min-width:33%;">
 
;[[Search_Engine_Optimisation#Fixing_Broken_Site_When_SEF_is_Enabled|Removing the live site variable]]
 
;[[Search_Engine_Optimisation#Fixing_Broken_Site_When_SEF_is_Enabled|Removing the live site variable]]
;[[Why_does_your_site_get_messed_up_when_you_turn_on_SEF_(Search_Engine_Friendly_URLs)%3F|Problems with SEF URLs with websites in subfolders]]
+
;[[Common problems when enabling Search Engine Friendly (SEF) URLs|Common Problems]]
 
</div>
 
</div>
 
| style="padding-right:1.2em;" |
 
| style="padding-right:1.2em;" |
| class="home-tile" style="width:33%; text-align:center;" |
+
| class="home-tile" style="width:33%; text-align:left;" |
 
<div class="home-tile-title" style="background-color:#d3e5b8;">'''Advanced SEO'''</div>
 
<div class="home-tile-title" style="background-color:#d3e5b8;">'''Advanced SEO'''</div>
<div style="display:inline-block; padding:.4em .5em; min-width:33%;">
+
<div class="home-icon">
 +
<div style="display:inline-block; padding:.7em .5em;">[[Image:Advanced_icon.png|40px]]</div>
 +
</div>
 +
<div style="display:inline-block; padding:.4em .5em; min-width:33%; max-width:66%;">
 
;[[Microdata]]
 
;[[Microdata]]
 
;[[Google Updates]]
 
;[[Google Updates]]
 
;[[Add_Static_Text_In_Title_Of_Page|Add static text in the title of pages]]
 
;[[Add_Static_Text_In_Title_Of_Page|Add static text in the title of pages]]
;[[Using_RSS_Feeds_To_Share_Content|How to enable RSS feeds to encourage traffic on dynamic pages]]
+
;[[Using_RSS_Feeds_To_Share_Content|Using RSS feeds to encourage traffic]]
 
|}
 
|}
 
<br />
 
<br />
Line 48: Line 50:
  
 
A somewhat important SEO technique that also helps your users is using [[Search Engine Friendly URLs]]. See [[Enabling Search Engine Friendly (SEF) URLs]] for more information.
 
A somewhat important SEO technique that also helps your users is using [[Search Engine Friendly URLs]]. See [[Enabling Search Engine Friendly (SEF) URLs]] for more information.
 
+
</div>
See also: [[Beginners#Address_Search_Engine_Optimization|Beginners: Address Search Engine Optimisation]]
+
 
+
 
[[Category:Landing Pages]]
 
[[Category:Landing Pages]]
 
[[Category:Search Engine Optimisation]]
 
[[Category:Search Engine Optimisation]]
 
 
 
== Dynamic MetaDesc in a list of articles by category ==
 
When you view a list of articles by category, joomla put into the page the default configuration metadescription, but perhaps we want write the category description into the metatag for SEO reasons.
 
 
For this we need open the file includes/application.php.
 
 
Search for this piece of code in the function &getParams:
 
<source lang="php">
 
$params->def( 'page_title'      , $title );
 
$params->def( 'page_description', $description );
 
</source>
 
Add this code before:
 
<source lang="php">
 
if (strcasecmp($_GET['view'],'category')==0) {       
 
  $description = $database->GetOne("SELECT description FROM #__categories WHERE id={$_GET['id']}");     
 
}
 
</source>
 
 
Now the metadescription is more dynamic when you view a list of articles by category.
 
 
== Change default SEF suffix from .html to .htm ==
 
If you need to change default article SEF suffix from .html to .htm (for example, if you need to move static site to Joomla and keep existing urls with .htm extensions), you need apply following patch to includes/router.php (working on Joomla 1.5.9, should work on other 1.5.x versions):
 
 
Index: includes/router.php
 
===================================================================
 
--- includes/router.php (revision 13023)
 
+++ includes/router.php (working copy)
 
@@ -57,8 +57,13 @@
 
  {
 
  if($suffix = pathinfo($path, PATHINFO_EXTENSION))
 
  {
 
- $path = str_replace('.'.$suffix, <nowiki>''</nowiki>, $path);
 
- $vars['format'] = $suffix;
 
+ if ($suffix == 'htm') {
 
+ $path = str_replace('.'.$suffix, <nowiki>''</nowiki>, $path);
 
+ $vars['format'] = 'html';
 
+ } else {
 
+ $path = str_replace('.'.$suffix, <nowiki>''</nowiki>, $path);
 
+ $vars['format'] = $suffix;
 
+ }
 
  }
 
  }
 
}
 
@@ -93,7 +98,8 @@
 
  {
 
  if($format = $uri->getVar('format', 'html'))
 
  {
 
- $route .= '.'.$format;
 
+ //$route .= '.'.$format;
 
+ $route .= '.htm';
 
  $uri->delVar('format');
 
  }
 
  }
 
 
 
'''Note''': This patch only for bundled SEF plugin
 

Revision as of 21:31, 10 September 2013

Getting started with SEO
Nuvola arrow right.png
Troubleshooting SEO problems
Star icon.png
Advanced SEO
Advanced icon.png


About Search Engine Optimisation


Search Engine Optimisation (often abbreviated to SEO) refers to the process of improving the volume and quality of traffic to a Website from search engines. A site that has been optimised according to SEO practices is said to be Search Engine Friendly (often abbreviated to SEF).

A somewhat important SEO technique that also helps your users is using Search Engine Friendly URLs. See Enabling Search Engine Friendly (SEF) URLs for more information.