background image

Content tagged with: webmaster tools

Eric's picture

In the future, I will try to elaborate more on how to improve SEO in a Drupal. But for right now, here are some notes on what I have done with this site.

1. Install the Google Analytics module (http://drupal.org/project/google_analytics). You'll need to create a Google account if you have not already done so. This will monitor your visitors and web traffic.

2. Configure your URLs
- Enabe clean URLs. This uses Apache mod_rewrite to create virtual directory structure in your query strings.
- Enable the path module so you can rename URLs to whatever you like. Instead of node/#, you can make them more descriptive.
- Install the Pathauto module (http://drupal.org/project/pathauto). This module can be configured to automatically create a URL path alias based off of taxonomy, node title, menu structure, etc. I find it useful to configure path aliases based off menu structure and node titles. For example, here is a sample menu structure and the follow aliases I would use:

Home
>> My Hobbies
   >> Photography
      >> node/67
      >> node/68

My-Hobbies/Photography/Hiking
My-Hobbies/Photography/Ralphie-the-Cat

3. Install the XML Sitemap module (http://drupal.org/project/xmlsitemap). This module allows you to generate an XML sitemap that can be submitted to search engines automatically. You can see mine here: (http://thedrupalblog.com/sitemap.xml). I set my site to submit the sitemap to each available search engine. I also recommend signing up for the Google Webmaster Tools (http://www.google.com/webmasters/tools). This will allow you to monitor and configure the way Google analyzes your XML sitemap.

4. Install the Global Redirect module (http://drupal.org/project/globalredirect). This module will check to see if a path alias exists are redirect the user as necessary. For instance, if a user went to node/#, this module would redirect them to the more search engine friendly URL alias.

5. Use the taxonomy module. It's a great way to categorize your content. For this site, I use free tagging, so I do not have to maintain a definitive list of terms. It enables me to type in comma separated lists of terms that relate to my content. This also allows your users to click on your taxonomy terms and view contact what has been tagged with the same term.

Additional Notes
- If you are using automatic path aliases via pathauto, be careful when editing your nodes; you're aliases may be updated which can affect your menu structure and page links.
- I think it's important to setup pathauto immediately after installing Drupal. That way, when you're ready to start adding content to your site, you'll already be following a standard naming convention.
- I had some difficulty getting XML Sitemap and Pathauto to work together. At first, not all of my pages and taxonomy terms where showing up in the sitemap. I found a module called Module Weight (http://drupal.org/project/moduleweight) which helped alleviate some of my headache.