Fixing Canonical Issues On Linux And Windows Servers

January 2nd, 2009

I figure’d I’d write this one as a resource for whoever might need to quick look up how to do this. I know there are a lot out there, but few go talk about anything other than a .htaccess for an Apache server.

If you’re in the SEO game, all you need to know when somebody mentions canonicalization is “www vs non www”. There’s an entire wikipedia article you can read about it, but basically it will hurt your head unless you have a lot of patience to sift through crap that doesn’t affect you in any way.

Apache Canonical Redirect
Let’s start with the basic Apache 301 redirect. Say your site is http://whatever.com, and you want it to always be http://www.whatever.com. You would open up your .htaccess (or create one in notepad if you don’t already have one) and insert this line of code.

# mod_rewrite in use
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{http_host} ^whatever.com [NC]
RewriteRule ^(.*)$ http://www.whatever.com/$1 [R=301,L]

There, just upload that to your root and bingo bango you’re a freaking computer genius!

ASP Canonical Redirect

Ok, now for something that has hurt my head because I hate windows servers and everything associated with them. If you want to set a canonical version of your site in ASP. After scouring around the web I found a solution at seoimage.com that promises to hold the solution.

Insert this code into a global include file on your website.

<%
If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 Then
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www."
& Request.ServerVariables("HTTP_HOST")
& Request.ServerVariables("SCRIPT_NAME")
End if
%>

Solution 2 for ASP 301 Redirect from here

<%
' If the server name is not www.sitename.com we can do the redirect to www.sitename.com.
' The only time we can is if the method is a GET
' (no way to pass along the POST arguments) and its on port 80 (don't want to redirect the SSL).
if ( strcomp( lcase( Request.ServerVariables("SERVER_NAME") ) , "www.sitename.com", 1 ) <> 0 _
AND Request.ServerVariables(”SERVER_PORT”) = 80 _
AND strcomp( lcase( Request.ServerVariables(”REQUEST_METHOD”) ) , “get” , 1 ) = 0 _
) then
URL = “http://www.sitename.com” & Request.ServerVariables(”SCRIPT_NAME”)
if len ( request.servervariables(”QUERY_STRING” ) ) > 0 then
URL = URL + “?” + request.servervariables(”QUERY_STRING” )
end if
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”, URL
Response.End
end if
%>


ASP.NET Canonical Redirect

For those using ASP.NET technologies, the thing to do, according to my sources, is to either use the aformentioned code or access the IIS Internet Services Manager and right click on the folder you would like changed and select “Redirection to a URL” while checking two fields: “Exact URL mentioned above” and “A permanent redirection for this resource” and then just apply it and close it out.

Now, I’m very interested in setting canonical versions of ASP websites, especially since as an agency SEO, I frequently don’t have access to the IIS Internet Services Manager and cannot resolve these issues on my own. So I would love to hear any feedback on this.

Work , , , , , ,

Personalized Search

December 30th, 2008

I’m pretty sure by now, we’re all well aware of the personalized search pain in the ass that most of us have been having.  I was inspired to write about this by a question posed in a linkedin group.

Is anyone else nervous about the new “Behavior Based” search aka “Personalized” search trend? What preemptive steps can SEOs take to maximize its advantages while minimizing its adverse affects?

I will admit, when I first started noticing this a while back I was a little nervous because it was skewing my results a little when I was checking on the status of client websites.  But I realized, that this is actually not even that bad!

We are getting worried when we see that our search results are being customized by our recent search history for no reason!  Why should we worry about this?  The only purpose it serves is to improve the quality of the search engine results pages…that’s good right?

The fact remains that websites will still need to have quality content, with plenty of inbound links to give it authority.  THe fact that Google is personalizing search doesn’t mean that nothing we as SEO’s do matters.  People are acting like this is going to give a #1 spot to a site with INDEX as a title tag and 0 inlinks.

The advent of increased

mobile web usability

is going to make localization and personalization of search results increasingly popular. Google is changing for the better, to give the searcher more relevant search results.

So, what do you think?

Work , ,

Resources Of An SEO Consultant

December 23rd, 2008

A lot of people ask me how I keep up to date with the latest in search engine optimization news and techniques. A lot of this is figured out through trial and error in the process of optimizing websites (which I maintain will always be the best way to learn something), however there are actually many resources that I refer to on an almost daily basis for all of my industry news.

http://www.mattcutts.com/blog/ - I really don’t think a list of resources on SEO would be complete without this.  It’s self explanatory.

http://www.bluehatseo.com - Eli puts his “Advanced SEO Tactics” on display. It’s quite old and rarely updated but still very informative. Almost every new idea he shared got exploited to the max, and is no longer useful though.

http://www.seomoz.org/blog - The blog is dominated by “Rand”. Pretty much the opposite of Eli, Rand seems to always agree with everything Google says.

http://www.wolf-howl.com - Read an influential post of his about catering to Google.

http://forums.digitalpoint.com - Funny site.  A whole bunch of “SEO’s” giving each other “advice”.

There’s just a few of the places I go to occasionally when I feel like reading about some SEO.  Most of the things, you will have to figure out on your own though.   I hope to be posting more as I continue down this road and am constantly figuring things out every day.

Work ,

Festivus Cards

December 23rd, 2008



In lighter news, Happy Festivus!

Send a festivus card to a loved one! Leave the text in the message area so the recipient can get the link!

Your Name
Email of Recipient?
Subject You Want Email To Say
Personalized Message

Holiday , , , , , , ,

SEO For Lawyers

December 22nd, 2008

The most recent lawyer site I’ve performed SEO on is a St. Petersburg DUI Lawyer. When I was first given this site, somebody had already started doing SEO on it, and it ranked pretty well for a little bit. But then it dropped off and they stayed on the bottom of the second page like, rank 18.

So the first thing I did was increase the keyword count on the content of the site. Weeks later, it rose a few spots, but it was still on the second page. Then, I added some H1, and stronged some keywords, but that didn’t seem to help at all. Then finally the client called asking if there was ANYTHING we could do. So i took the initiative of rewriting the entire site architecture to reflect something more SEO friendly.

Now weeks later, he is ranking #1 for terms he hadn’t even wanted. He was at the point where all he wanted was ONE first page ranking, but I turned things around and got him ranked at #1 for a few nice keywords.

What I take from this to mean, is that site architecture is important. It wasn’t until we completely redid the architecture and renaming of the pages of the sites that we saw a dramatic increase in rankings.

Uncategorized ,

Phones and crap

December 19th, 2008

Got Ashley a blackberry curve for christmas, so that means I got her sidekick.  This thing is pretty cool.  I spent way too much time on it figuring shit out at work.


We’re trying to figure out how we can take advantage of server side includes in .shtml documents.  It’s at the, “huh, that’s pretty neat” stage, but have yet to find any real use for anything.

Work ,

SearchPerks - Economics of Search

December 3rd, 2008

I majored in economics when I went to the University of Iowa.  And I am working in search engine optimization right now.  And let us ignore how strange that fact may be for the moment, and use my interest in two separate fields to study an important question.

Can economics sway users to change locked in search habits?

Google is dominating the search market.  Whenever I look at a clients analytics, other search engines are a tiny fraction of the traffic that Google brings in.  I usually don’t even consider optimizing for any search engine other than Google.  But MSN is utilizing a powerful tool to gain leverage:  compensation.

What is the incentive for one person to change from a trusted and locked in pattern of using Google?  I believe MSN is using incentives to draw people to use search engines.  This is fresh in my mind because, yesterday on the Colbert Report he had a guest that was speaking for using economic incentives to entice inner city school kids to get good grades.

Incentives work.  We work for money.  We sex for fun.  Practically everything we do is driven by some incentive.  And I think that MSN has a potential opening here for making it happen.  I don’t expect that this is going to come anywhere near eliminating a giant like Google, but I do expect it’s going to gain a sizable amount of users.  All people have to do is use MSN Live Search for their search queries and it rewards you with points that you can use to redeem gifts.

I believe that if enough people used MSN Live Search enough times for the sake of earning points, a lock-in effect would occur over a certain amount of time that would result in retention of users of MSN Live.  If you can create a habit out of the incentivized use of MSN, then you may end up retaining a good number of people.  Not only people from Google to Live Search, but also from browsers like Firefox back to IE, (especially because you can only use IE to view the web page).

http://www.getsearchperks.com

What do you think?
Update - 12-08-2008 - I have concluded that no amount of incentives are enough to persuade someone who uses search engines 8 hours a day to use msn 25 times a day.

Work , , ,

Google Backs Out Of Yahoo Deal

November 5th, 2008

In a move that would have solidified Google’s partnership with Yahoo making them the largest internet marketing business on the net, Google backed out on the premise of a lawsuit on behalf of the Justice Department.

The Justice Department says that it would have taken legal action because the new partnership would constitute a monopoly and eliminate competition from the market. They say that this would prevent prices from being as low as they would under perfect competition. However, this is bad news for the struggling Yahoo which sought to inflate stocks for shareholders with the news of a partnership. The Justice Department has done the opposite of saving competition by letting the dragging Yahoo continue on.

Will prices be lower with Google and Yahoo separately? Let’s think about the logic behind this. Since a vast majority of search engine users use Google as their primary search engine, companies are STILL going to go to Google when it comes to their advertising needs. Higher advertising prices aren’t going to split consumers between Google and Yahoo, so it doesn’t make any sense that there would be a decrease in the ratio of advertising between Google and Yahoo. Higher prices in Google aren’t going to make advertisers stop advertising on Google and move to Yahoo. They’re going to decrease the budget for their Yahoo campaign and put more into Google, since the majority of consumers ARE NOT affected by these price increases and thus still use Google more than ever.

Under normal economic circumstances, I would agree, but the fact that consumers are the heart of this discussion raises the issue at hand.  Competition is a non-issue for Google.   If marketers were faced with a raise in the price of PPC advertising, they would for sure lower their Yahoo! budget to accomodate the rising cost of Google PPC.

And this is how antitrust laws may hurt struggling businesses as opposed to helping them, and why government should take a minimal roll in the preservation of decaying business.

News , , ,