Re: apache rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Many Thanks for that. I had searched google but I wasn't 100% sure of
what I took in. Its nice to ask someone just to be sure.

Shaz

On 5/23/05, Alexander Dalloz <ad+lists@xxxxxxxxx> wrote:
> Am Mo, den 23.05.2005 schrieb Shahzad Chohan um 11:11:
> 
> Don't top-post please.
> 
> > Whats the difference between a rewrite and a redirect. I mean is there
> > a reason as to why I need a 301 ( I was just told to issue a 301 by
> > someone else). If I don't put an R in on the rewrite whats the default
> > return? Can I also issue an R=404?
> 
> > Shaz
> 
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
> 
> Read about the HTTP status codes. You then hopefully will understand why
> 404 would be the wrong return code. 301 is typically used for a
> permanent movement and 302 for a temporary one. You could use 410 i.e.
> for telling search engines that a webcontent is gone and should be
> removed from the search engine index. But that is done by using "G"
> instead of "R", or even "F" for a 403. Please read the mod_rewrite
> documentation carefully.
> 
> Deferrences between redirecting and rewriting are described here:
> 
> http://www.cs.utk.edu/~sammons/docs/redirect.php
> 
> Redirecting use mod_alias while rewriting uses mod_rewrite. The
> mod_rewrite possibilities are much more powerful and can handle advanced
> condition definitions.
> 
> Alexander
> 
> 
> --
> Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
> legal statement: http://www.uni-x.org/legal.html
> Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp
> Serendipity 17:29:02 up 9 days, 17:01, load average: 0.73, 0.43, 0.21
> 
> 
> BodyID:21523032.2.n.logpart (stored separately)
> 
>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux