PDA

View Full Version : what is mod rewrite


discover
03-19-2006, 02:15 PM
what is mod rewrite and what does it do exactly and is it on by default?

Boby
03-19-2006, 02:50 PM
mod_rewrite is a module for the Apache HTTP server. It's a rule-based rewriting engine to rewrite requested URLs on the fly. Usually, a web software is using this engine to rewrite URLs from the ugly like your-domain.com/index.php?foo=bar&blah=blahblah... to something more nice like your-domain.com/foo/ or your-domain.com/foo.html

The mod_rewrite engine will convert this nice URLs internally and give the server the ugly URL that it can handle and make proper output.
You can read the documentation:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

This is used specially for search engines that like this nice URLs but a regular user will like this too.

Boby

Kevuk2k
03-19-2006, 03:22 PM
Nice explanation Boby, even I know what it is now 8) I'm gonna pretend I knew it all along though.

Kev

discover
03-19-2006, 03:41 PM
Thanks Boby
i think ill pretend i knew also :)