You don't want to just abandon all those old links, but you have just registered a new domain name COOLNAME.ORG. And it will be hosted someplace else.
/w/hairy/old/urlon petra. Go to that directory and create a file named
.htaccesscontaining a line like this:
Redirect /hairy/old/url http://www.coolname.org
An easy way to do that is to get a shell and type the commands
echo 'Redirect /hairy/old/url http://www.coolname.org' >> .htaccess
/v/cool/) contains a file
plainfolks.html. Then the newspaper prints a story containing the URL http://www.coolname.org/plainfools.html and they will sell two million copies this morning! You could write a correction, and place it at
plainfools.html, but that would distract from your message. The elegant fix would be to put a line in
Redirect /plainfools.html http://www.coolname.org/plainfolks.html
Redirectis everything after the hostname in the old URL. The last thing on the line is the new URL.