NYCPHP Meetup

NYPHP.org

[nycphp-talk] mod_rewrite -- what's the big deal?

Tom Melendez tom at supertom.com
Tue Oct 3 09:39:35 EDT 2006


And while we're all leading the cheer for mod_rewrite, I like to
mention a particular feature that I have found useful: proxy.

With the proxy directive, you can rewrite the URL without notifying
the browser (you're actually "proxying" the url).  So, the user types
in one thing, you can redirect their request somewhere else without
the user suspecting anything.  I use this on search feature for a
website - the searches are conducted on a completely different machine
- but the user still sees the same website and URLs

Tom
http://www.liphp.org

On 10/3/06, Donald J Organ IV <dorgan at optonline.net> wrote:
> Also mod_rewrite makes it easier to track stats as well.  For instance
> you may not be able to get stats for index.php?action=Products&prodid=99
> where as you would be able to track stats on /products/99
>
> Billy Reisinger wrote:
> > So, yeah, there's the whole point about the urls being easier to
> > remember.  Also, having your query string out there in the wild
> > reveals some things about your implementation to would-be hackers.
> > Not that you aren't covering your ass, of course. That's just another
> > excuse I've heard for using mod-rewrite.
> > Another thing is that you aren't revealing the file type you are
> > using (php) and thus are making it even harder for someone to know
> > how you are generating content.  Of course, someone could just
> > inspect the HTTP headers to find out your server is using PHP.  On
> > the other hand, if you are using a service to distribute your content
> > widely, like a server farm (think Akamai), you now have complete
> > ambiguity about what technology you are using.
> >
> > On Oct 3, 2006, at 7:45 AM, Richard Harding wrote:
> >
> >
> >> Cliff Hirsch wrote:
> >>
> >>> I'm confused by mod_rewrite
> >>>
> >>> What is the point? What is the big deal?
> >>>
> >>> Why is www.website.com/page/action/stuff/morestuff/
> >>>
> >>> Better than
> >>>
> >>> www.website.com/page.php?action=something&id=#&....
> >>>
> >>> What difference does it make? To me it mainly looks like a major
> >>> headache making all the queries written in PHP play nicely with
> >>> mod_rewrite.
> >>>
> >> Ever tried reading an email like the second over the phone?
> >>
> >> Rick
> >> _______________________________________________
> >> New York PHP Community Talk Mailing List
> >> http://lists.nyphp.org/mailman/listinfo/talk
> >>
> >> NYPHPCon 2006 Presentations Online
> >> http://www.nyphpcon.com
> >>
> >> Show Your Participation in New York PHP
> >> http://www.nyphp.org/show_participation.php
> >>
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> >
> >
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



More information about the talk mailing list