Welcome to WebmasterWorld Guest from 54.146.169.191

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

redirect vs rewrite

when you use one and when the other

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

Moderator

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

joined:Apr 25, 2002
posts:8421
votes: 204


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)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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)

Moderator

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

joined:Apr 25, 2002
posts:8421
votes: 204


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members