Das Vorfeld wie üblich: eine hoffentlch möglichst "sprechende", also aussagekräftige Domain mit dem wichtigsten Keyword (zB blumen-mueller.xy statt hansmueller.xy). Und natürlich wohlplatzierte, aber nicht überdosierte Keywords in allen Title-Attributen, Aliasen, Alt-Texten, Bildnamen, h-Überschriften und natürlich im Content. Als Trennzeichen für Dateinamen und Aliase bieten sich Bindestriche an.
1. Ganz klar: pretty URL aktivieren, wenn möglich über Rewrite-Rules inder .htaceess.
Einstellungen in der config.php (diees Beipiel gibt eine url mit einem .html hintendran aus - aber das ist natürlich nicht zwingend)
Code: Select all
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteBase / <-- Falls sich euer Projekt (noch) in einer Testumgebung befindet : hier den Unterorder (ab Domain) angeben
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
RewriteRule ^News/rss(.+)$ index.php?page=News/rss$1 [S=1]
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
2. Schnelloptimierung des Title-Tags
Wenn man seine Seite bei den Google-Webmastertools checken lässt, wird gerne gemäkelt: "Mehrere Seiten mit gleichem Titel". Der Titel-Tag lässt sich recht flott und einfach individualisieren.
Im Template (oben im head-Bereich) suchen nach:
Code: Select all
<title>{sitename}</title>
Code: Select all
<title>{sitename} - {title}</title>
2. Schnelloptimierung des Meta-Tags "Description"
Auch das wird gern von den Webmaster-Tools bemängelt und lässt sich auf fast die gleiche Art und Weise automatisieren und optimieren, ohne manuell für jede Seite eine eigene Beschreibung zu tippen:
Im Backend unter Administrator->globale Einstellungen im Feld "Globale Metadaten"
Code: Select all
<meta name="description" content=" {title} - Hans Müller: Blumen und Gestecke in Berlin oder so" />
Wer den $metadata-Tag im Template nicht nutzt, kann das Beispiel natürlich auch direkt ins Template einfügen.
...