Crawling up the Ranks

Finally, I’m back at the first hit when you google “isaac liu”. Because of all the webhost changing and redesigning of my page, my page rank started dropping, until eventually my site completely disappeared from google search when querying “isaac liu”! I did some researching and found out that by using the < meta refresh = "" > tag to do redirection, my page rank took a penalty, and maybe even prevented the google crawler to index my site. This is because normal spam sites use this method to redirect people to their spam sites. Thus, I went out to find how to do redirection the correct way, which was using 301 permanent move. What that means is, the http code that’s sent back to the requesting client should be 301, which means “permanently moved site.” The < meta refresh="" > method sends back the code 200, which means “Request OK,” and then later does the redirection. That is extremely not search engine friendly. To change this required tweaking of the .htaccess file on my web host, which is using the UC Berkeley EECS department’s webhost. If your curious, i added the following code to my .htaccess file:

1 RewriteEngine on
2 RewriteRule  ^index\.html$  /~liuisaac/site/ [R=301,L]
3 RewriteRule  ^$  /~liuisaac/site/ [R=301,L]

This uses the Apache mod_rewrite engine to rewrite all incoming requests to index.html (line 2 and 3) to the “site” subdirectory. Now all requests will be forwarded and the header message sent back will be 301 (specified by R=301 ), which is search engine friendly. Low and behold, I am back atop the google search for “isaac liu”! If you are using < meta refresh="" > to do redirection, and don’t know why your page isn’t showing up on google, this might be the reason! A more indepth tutorial on mod_rewrite can be found here.

blog comments powered by Disqus

my pic Isaac Liu is currently a Ph.D student at the University of California, Berkeley in the EECS department. He is part of the CHESS (Center for Hybrid and Embedded Software System) group advised by Edward A. Lee. His research interests are in real time systems, parallel architectures and programming models. His current research project is on real time computer architectures (PREcision Timed Machines – PRET).
read more…

office 545K Cory Hall, Berkeley, CA
email liuisaac (at) berkeley (dot) edu
cv html / pdf [ updated: 9/05/11 ]
others facebook linkedin twitter picasa github

Recent Blog Entries

Archive...

Tags