Chronology Current Month Current Thread Current Date
[Year List] [Month List (current year)] [Date Index] [Thread Index] [Thread Prev] [Thread Next] [Date Prev] [Date Next]

[Phys-L] Re: googling (and cold fusion)



Whenever you relocate or rename a file, you should _redirect_ the
old URL to the new one.

The rationale is that google will continue to refer people
to the old URL for at least a week (possibly longer), and
people may keep bookmarks for the old URL more-or-less forever,
so redirecting them is the best way to make the right things
happen.

There are ways of doing this within HTML (using pragmas) but
the preferable way is to do it lower in the protocol stack,
i.e. at the HTTP layer.

On an Apache server, you can easily do this by adding a line
to the .htaccess file in the directory where the old file
would have resided.

Here are three examples from my web site, i.e. three lines from
the .htaccess file in the http://www.av8n.com/physics/ directory.

Redirect permanent /physics/energy-reserves.txt http://www.av8n.com/physics/energy-reserves.html
Redirect permanent /physics/measurement-u.htm http://www.av8n.com/physics/uncertainty.htm
Redirect permanent /physics/momentum-squared.htm http://www.av8n.com/physics/kinetic-energy.htm

You can do the experiment: Try to fetch
http://www.av8n.com/physics/momentum-squared.htm
and see what happens.

For technical details, go to
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
and look at HTTP status code 301: Moved Permanently.
_______________________________________________
Phys-L mailing list
Phys-L@electron.physics.buffalo.edu
https://www.physics.buffalo.edu/mailman/listinfo/phys-l