l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2005 Dec 14 13:17

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] moving an url gracefully
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] moving an url gracefully



On Wed, Dec 14, 2005 at 01:52:20PM -0500, Aaron A. King wrote:
> Forgive my ignorance, but is this something that must be done by reconfiguring 
> the server?  Or can one put the 301 redirect into an HTML page sitting at the 
> old site?

You can't. There is a non-standard, but de facto standard way to
accomplish something very similar in HTML, by using <meta
http-equiv="Refresh" value="0; http://new-url/";>, but you wouldn't want
to use that unless you really had no control over the server
/whatsoever/, even through local configs (.htaccess). There are pretty
good reasons not to use that method most of the time; and it also fails
to programatically notify indexers or user agents that the new
destination replaces the old one (as a 301 does--though I have no idea
how smart indexers are about that sort of thing).

Apache (and maybe other servers) supports the concept of an ".asis"
document (as-is), which gets served exactly as is, and includes the
appropreate HTTP headers _in_the_document_. However, IIRC, Apache
doesn't normally have these set up by default, and so if you're able to
get that working, you'd probably be able to get the mod_rewrite stuff
working as well (which is a generally better approach).
-- 
HTH,

Micah J. Cowan
micah@cowan.name
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.