Archive for March, 2007
wordpress seo stuff
Friday, March 30th, 2007doing a little seo for wordpress this morning.
for my sites, duplicate content has become a large seo problem. i am fixing it today.
In an attempt to eliminate duplicate content from this and other wordpress blogs i maintain, I have done the following:
- made a few changes to my robots.txt - no more /category, year/month archive or /page crawling
- installed an html sitemap plugin
- installed a plugin that adds the trailing slash to permalink requests
- installed a plugin that manages meta description tags
in an attempt to clean up my dirty meta descriptions, i installed head meta description plugin
i was already doing
- spiffy title tags:
<title><?php if (is_home()) { ?><?php bloginfo('name'); ?><?php } else { ?><?php wp_title(''); ?> » <?php bloginfo('name'); ?><?php } ?></title>
- google sitemaps generator (actually this is the link for the new beta which i haven't played with yet)
- my permalink slug is almost always
/%postname%/
and this isn't necessarily seo, but i am using dofollow on a few blogs (including this one)
all this plus the regular advice regarding proper markup and decent content and not breaking the rules should increase my blogs' organic traffic
links for 2007-03-30
Friday, March 30th, 2007links for 2007-03-29
Thursday, March 29th, 2007-
This script searches google for a given search term and redirects the user to the page of search results that contains the target URL.
-
You can download the entire set of SysInternals tools bundled together
clear or remove query string on postback… nifty but ghetto
Wednesday, March 28th, 2007if (!Page.IsPostBack) { // set defaults, hide yer panels, etc here
if (Request.QueryString["q"] != null) // if the query string exists { // aspnetForm - default masterpage form name, YourPage.aspx - whatever your page name is
ClientScript.RegisterStartupScript(this.GetType(), "qr",
"document.all(\"aspnetForm\").action = \"YourPage.aspx\";", true);
// do stuff with query string
RedrawPage(Request.QueryString["q"]);
}
}
so if you have a page that accepts a query string, you definitely want to set that view
but this is asp.net, so your page also posts back
you don't want the query string to persist across postbacks - that's just ugly, breaking bookmarks, etc. you want to clear the query string but maybe you are trying Clear() or Remove() and you are realizing that Request.QueryString is Read Only..
one option is to set the form's action in client script (Googlebot's not posting back anyway)
is there a better way to do this? it seems so ghetto
by the way, comments on this blog are NOT nofollowed
.
links for 2007-03-28
Wednesday, March 28th, 2007links for 2007-03-27
Tuesday, March 27th, 2007links for 2007-03-27 the first
Tuesday, March 27th, 2007pl/sql: updating a table but not replacing it, with sequence/triggers
Monday, March 26th, 2007ever forgotten the predicate of your update query? you would have to update everything from backup. back to the future!
i affected (er, corrupted) all 1600+ rows of semi-important data recently. and had to restore the rows (while keeping the rows added since last night).. thought about something cool like insert into where not exists or using minus, but we settled on the fastest way:
alter trigger schema.id_pk_increment disable delete from schema.table where id in (select id from other_schema.table_restore) insert into schema.table select * from other_schema.table_restore alter trigger schema.id_pk_increment enable