Thursday, February 19, 2009

Redirect your old site to your new site with 301 Redirects

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".

PHP Redirect
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/");

Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Please REPLACE www.newdomain.com in the above code with your actual domain name.


Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

Get redirects for other scripts from http://www.webconfs.com/how-to-redirect-a-webpage.php

Labels: , ,

Friday, February 13, 2009

I've been trialling YouSendIt as a way of sending huge attachments reliably without FTPing and without overloading your friends email box. YouSendIt provide a secure free service, they hide it a little on web page

Labels:

Monday, February 09, 2009

Creating Your Own Help File System

*nix users create lots of their own utilities/scripts over time. Scripts to search for information, query a database etc etc. The danger is however that they forget what they've called their script and what it was supposed to do.

My own successful solution has been to create a simple hierarchical help system.

hhelp is just a text file which as you can see lists my help files which are also simple help files.

hhelp (master help file) lists

$ hhelp
vhelp : vi/grep utilities
thelp : tex/latex
yhelp : yoyo (toggle between two directories)
mhelp : marker help
nhelp : notes
zhelp : z-notes
chelp : cygwin help
ihelp : info help
phelp : paste help

so typing phelp at the command line would list all my scripts which manipulate the copy/paste buffer

$ phelp
cclip clean copy-paste buffer
vxp vi paste buffer
vxpp print paste buffer
vfp vi file in paste buffer
cxp cp remote paste to local paste

So my system is more an aide-memoire than a fully fledged help system, but at the moment that's all I really need, of course my scripts also have a single line description which I can list when required

Labels: , , ,

Friday, February 06, 2009

Installing Firefox's Spell checker

I've often wanted a spell-checker when writing Squidoo lens etc.

Am I the only who didn't know you can install a spell checker in Firefox?

Firefox's Spell checker is an Optional Plug-in! When writing your blog or
squidoo lens right-mouse click and select "add
dictionaries". Thereafter misspelt words will be underlined. Curiously the American dictionary I installed didn't contain "Firefox"

As soon as I installed it I started noticing small typos and British spelling in my popular lens http://www.squidoo.com/creatingideas Just How do you Create More Ideas?

Labels: , ,