301ing with ASP.NET
Sat, 07/12/2008 - 14:49 — cactusYou 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();
- 4859 reads
What to name your CSS Classes?
Wed, 10/31/2007 - 01:04 — cactusSo 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?
- Read more
- 2749 reads
Use Only Quality Meta tags
Sun, 08/12/2007 - 22:17 — cactusWhen 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:
- Read more
- 2421 reads
Remove PHPSESSID from URL
Sun, 07/01/2007 - 19:26 — cactusNot 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!
- 5240 reads
Use Multiple CSS Classes
Sat, 06/30/2007 - 15:20 — cactusDid 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;}
</style>
- Read more
- 2755 reads
Create a Link Farm
Mon, 06/25/2007 - 01:31 — cactusYou have a site that you really want to push. So you want to create a link farm? Well, here's an idea...
- Read more
- 15132 reads
Top 10 Drupal Modules for SEO
Tue, 06/19/2007 - 02:48 — cactusHere 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.
- Read more
- 3326 reads
Repair a Broken Drupal Database Table
Tue, 06/05/2007 - 05:08 — cactusFrom 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!
- 12148 reads
Want to leap into Linux? Try Ubuntu
Tue, 06/05/2007 - 04:19 — cactusI 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.
- Read more
- 1734 reads
User login
Menu
Who's online
Powered by Drupal - Design by Artinet - © 2007 SEO Cactus
