Shawn L. Hyde, Portfolio/Resume
Specializing in 3D art, Web Design and Concept Creation
How to create Custom SEO for each content page of the Community Server platform?

In four easy steps:

  1. Create a file in the "/"directory called siteurls_override.config

    <?xml version="1.0" encoding="utf-8" ?>
    <Overrides>
    <Override xpath = "/SiteUrls/locations" mode = "add" >
    <location name="(pagename)" path="/(foldername)/" themeDir="(foldername)">
        <url name="contentpart_articlename" path="{0}.aspx" pattern="##contentName##\.aspx" vanity="{2}?contentname=$1" physicalPath="##themeDir##" page="(pagename).aspx" />
    </location>
    </Override>
    </Overrides>
  2. Copy the Content folder in "\themes\theme-name\" and rename it the same as you made the folder name in the "path" field above. Go into this folder and name it what ever you entered for the "page" field above. (this allows some added SEO by url name also.
  3. open the .aspx file in the "themes\theme-name\foldername" and change the line from
    <%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" Inherits="CommunityServer.Controls.CSThemePage" MasterPageFile="../Common/master.Master" %>
    to
    <%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" Inherits="CommunityServer.Controls.CSThemePage" MasterPageFile="../(Foldername)/(pagename).Master" %>
  4. Go to Themes\theme-name\Common\ and copy rename the master.MASTER file and rename it to (pagename).MASTER you can now open and edit the HTML for title and meta in this file.

*hint* it goes directly after this code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

SEO code should be in this format:
<title>My SEO Title content</title>
<meta name="description" content="My SEO description content">
<meta name="keywords" content="My SEO keywords content">

So in 4 simple steps you've made Community Server SEO Friendly for content pages!

Also keep in mind that Google no longer looks at keywords and only lightly at meta description now. You should focus on the content of your site and keep in mind that the SEO code only helps your page position if it matches the rest of your page content.


Posted 07-21-2008 3:42 PM by Shawn Hyde
Hosted by Area51 Services ∙ ©2007-2009 Shawn Hyde, all rights reserved.