Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: Ocean10000 & incrediBILL & phranque

redirect vs rewrite

when you use one and when the other

   
5:20 pm on May 7, 2002 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I have a basic question: when is it more appropriate to use Rewrite and when Redirect. I use Rewrite, for example, to send everything to a single script, allowing me to use friendly URLs. I only do this because I don't know any other way, but could I do this with Redirect? Would there be any circumstance in which I would want to or should it literally be reserved for things that have moved?

Tom

7:04 pm on May 7, 2002 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Rewrite is much more powerful - and complex. So, I use Redirect (under mod_alias) for simple stuff, and Rewrite (under mod_rewrite) for more complicated applications. YMMV. There is a lot of overlap between these two modules' capabilities, so sometimes it's just a matter of personal preference or style.
9:49 pm on May 7, 2002 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Thanks. I guess I should learn a bit more about Redirect.... it took me long enough to get a handle on Rewrite, but from the sounds of it, Redirect should be a bit easier.

Tom

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month