You are here: Re: Removing obsolete pages from a site « HTML « IT news, forums, messages
Re: Removing obsolete pages from a site

Posted by Ken Sims on 10/15/07 03:57

Hi dorayme -

On Mon, 15 Oct 2007 08:10:33 +1000, dorayme
<doraymeRidThis@optusnet.com.au> wrote:

>In article <ulo4h35banlsokd1abi2q9jiegrmgsm60d@4ax.com>,
> Ken Sims <ng3122@kensims.#nospam#.net.invalid> wrote:
>
>> Hi dorayme -
>>
>> On Sun, 14 Oct 2007 09:25:12 +1000, dorayme
>> <doraymeRidThis@optusnet.com.au> wrote:
>>
>> >OK. Is your "permanent" just an alternative to putting in "301"?
>>
>> From http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect
>>
>> [QUOTE]
>> If no status argument is given, the redirect will be "temporary" (HTTP
>> status 302). This indicates to the client that the resource has moved
>> temporarily. The status argument can be used to return other HTTP
>> status codes:
>>
>> permanent
>> Returns a permanent redirect status (301) indicating that the
>> resource has moved permanently.
>>
>> temp
>> Returns a temporary redirect status (302). This is the default.
>>
>> seeother
>> Returns a "See Other" status (303) indicating that the resource
>> has been replaced.
>>
>> gone
>> Returns a "Gone" status (410) indicating that the resource has
>> been permanently removed. When this status is used the URL argument
>> should be omitted.
>>
>> Other status codes can be returned by giving the numeric status code
>> as the value of status. If the status is between 300 and 399, the URL
>> argument must be present, otherwise it must be omitted. Note that the
>> status must be known to the Apache code (see the function
>> send_error_response in http_protocol.c).
>> [/QUOTE]
>>
>> Those codes apply to the Redirect and RedirectMatch directives.
>>
>> There are also RedirectPermanent and RedirectTemp directives whose
>> status is always what is implied by the directive name.
>
>Thank you for this info. Is there any difference in effect
>between putting "permanent" rather than "301"?

Assuming that you are using Apache, there is no difference.

Being a techno-nerd, I always use the numeric codes myself.
Particularly since for some of the things I do, I use numeric codes
which do not have a word equivalent.

--
Ken
http://www.kensims.net/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация