iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  Directories (11)
  Google (113)
  Interviews (9)
  Keywords (30)
  Link Development (40)
  Marketing (48)
  Meta Tags (7)
  Optimization (112)
  Promotion (30)
  SE News (814)
  Spiders & Robots (22)
  Submission (8)
  Traffic Analysis (6)
  Tools (7)
  Algorithm (11)
  PPC (17)
  Domain Names (6)
  SEO Services (40)
 
Want to receive new articles via e-mail? Click here!
/Home /Optimization /Optimizing Dynamic Pages

Top Search Engine Ranking Using Content Management Systems 

  Views:    1754
  Votes:    0
by - Mufad 10/16/04 Rating: 

Synopsis:

Mufad shows us how to customize a CMS to improve search engine rankings.
Pages: firstback2 forwardlast
The Article

What Is A CMS?

A Content Management System (CMS) allows you to add, edit or delete content to your website without having to create and format the pages manually. All the pages get generated on the fly, the CMS application picks the template, adds the headers and footers, generates the menus and blocks for your page and then automatically renders the page. As an example, when I wanted to add Google ads to all the pages of my CMS site, I created a block with the Google Adsense code. When I activated it, it automatically appeared on all my pages. If I had to do this page by page, it would have been a nightmare (since my site contains thousands of pages)!

The main reason people hesitate to use CMS is because they think a CMS site will not perform well with search engines. But when used properly, CMS can actually help with scoring points with the search engines. This article shows you how.

We all know that content is king and that the primary function of today's Internet is to deliver content to those that are seeking it. Most people who do Search Engine Optimization know that the secret to high ranking on the search engines is to get links from external sites, but that's only half the story. The other face of the SEO coin is to have many internal content
pages that point to your main page, thereby increasing the link popularity of that page. CMS allows you to easily manage multiple pages on your site, categorized into appropriate topics and categories.

If you run a community site, CMS allows visitors to submit content, which can later be reviewed and approved by a moderator. Such a system can lead to exponential growth of your website and can be very effective if the quality of the content is maintained.

While it is a fact that most free CMS's available were not designed with the search engine spider in mind, CMS applications are flexible and can be tweaked to help you gain a top rankings with search engines.

How Do You Customize A CMS Application To Improve Search Engine Rankings?

First, there is the issue of dynamic URLs. Most CMS's will generate URLs with parameters embedded into them. As an example, each article link on your site may look like this:

http://yoursite.com/modules.php?op=...ws&file=article
&sid=35&SESSIONID=200dbf5df81843102bc2ba2560207841

Not only does it look ugly, the search engines probably won't spider it. Google has partial support for dynamic URLs but it's not likely to index your internal pages unless you have a good page rank on your main page to begin with. It's is best to cast that URL, into something like this:

http://yoursite.com/article35.html

This can be achieved by making use of the web server module called mod-rewrite. To use this, you'll need to add a rule to your .htaccess file using regular expressions to convert the URL. The following 2 lines added to your .htaccess file (in your document root) will achieve the URL conversion for the example above.

RewriteEngine on
RewriteRule ^article([1-9][0-9]*).*
modules.php?op=modload&name=News&file=article&sid=$1

You need to add one RewriteRule line for each transformation for different types of URLs. For more details on mod-rewrite, have a look at http://powersitesystem.com/article1.html This casting using Mod-Rewrite will convert an elegant URL into an ugly one which CMS expects, but in the pages being returned from your CMS, how do you convert from the ugly URL to the elegant one?

Most CMS's come with header and footer includes which you can append with a custom header and footer to apply to all your pages. Assuming that you use PHP and that the HTML is the variable $HTML, you can use PHP code in the footer (wherever we have the entire HTML available before sending to the browser client) to convert the ugly URLs to elegant ones.

The above example shows only one element in the array but we can have as many elements as we need for our URL transformations. This will work only if you have the entire html buffered into a variable before sending it out. Assuming you are using PHP, An elegant way to achieve this is to use output buffering, you can use http://in2.php.net/manual/en/function.ob-start.php in the header to start output buffering and http://in2.php.net/manual/en/functi...et-contents.php in the footer to get the buffered output.

The session id is usually not necessary. Even if it's critical to the functionality of your website, it need not be in the URL. Most users have cookies enabled so CMS can store the session id using cookies. The web server appends the session id to the URL the first time a visitor comes to the website just to make sure that the application will work even in the rare case that the user doesn't have cookies enabled, but search engines don't accept cookies so they always get to see the session id! URL rewriting for session maintenance can and should be turned off within your web server settings.

Pages: firstback2 forwardlast

Similar/related articles:


 
  Sponsors