301ing with ASP.NET

You could put this in your code-behind pages or even your global.asax file. string oldPath =HttpContext.Current.Request.Url.PathAndQuery; string newUrl = "http://www.seocactus.com"+oldPath; Response.Clear(); Response.Status = "301 Moved Permanently"; Response.AddHeader("Location", newUrl); Response.End();

What to name your CSS Classes?

So you just put together your awesome all-div layout. Hot. Now, before you think, you're done... you may consider your css id/class names. Did you really just name your footer div's class "footer"? You did? Oh ok, well... how important do you think that sounds? And better yet, does it relate to anything on your site?

Use Only Quality Meta tags

When adding description and keyword meta tags to each of your pages be sure to include only quality words that are actually listed somewhere on the page. If not, it might be looking a bit spammy and your pages might get the dreaded "supplemental result" label. For example, this page's meta tags might look something like this:


Not only do URLs with PHPSESSIDs look terrible, but they could easily be thought of as duplicate content. You've probably seen them: Something like this perhaps... ...index.php?PHPSESSID=6834tgksdfdadgfdgaglkghd Yuck. You can easily turn that off with a line in your .htaccess file: php_flag session.use_trans_sid off And that should do it!

Use Multiple CSS Classes

Did you know you can use multiple css classes in an html element? I'm sure you knew that, but in any case, here's an example of how someone might have done this in the past:

<style type="text/css">
.e {color:red; font-size:12px;}
.eBold {color:red; font-size:12px; font-weight:bold;}

Create a Link Farm

You have a site that you really want to push. So you want to create a link farm? Well, here's an idea...

Top 10 Drupal Modules for SEO

Here are my favorite Top 10 Drupal Modules for SEO. Most are self-explanatory and can be found at the official Drupal site. Drupal.org. Here we go...

10. Service Links
Enable bookmarking sites such as del.icio.us, Digg, Reddit, ma.gnolia.com, Newsvine, Furl, Google, Yahoo, Technorati and IceRocket.

9. XML Sitemap (gsitemap)
Creates an xml sitemap.

8. Global Redirect
Checks to see if the current url has an alias set and does a 301 redirect to it.

7. Find Path
Helps find particular URL aliases.

6. PathAuto
This automatically generates path aliases.

Repair a Broken Drupal Database Table

From time to time you might see a table in your drupal database that has crashed, or wasn't closed properly. I have seen this a few times with the table responsible for the access counter.

To remedy this you should repair the table, via a repair function on a web based MySQL tool or via the command line:

REPAIR TABLE sometable

that's it!

Want to leap into Linux? Try Ubuntu

I have been using Ubuntu now as my main operating system for a few years and if there is one Linux distribution to suggest, Ubuntu is the one. Have access to thousands of applications, setup a LAMP server with just a few clicks... oh did I mention it's free? (of course). Their forums are also a great place to get help or learn more.

www or no www?

* Do you 301 to "www" on your site?\n* Do you not?\n
Syndicate content