Difference between revisions of "Apache Mod Rewrite"
From assela Pathirana
Jump to navigationJump to search
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
* [http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html apache documentation on mod_rewrite] | * [http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html apache documentation on mod_rewrite] | ||
* [[Image:mod_rewrite_cheat.pdf|Mod_rewrite Cheat-sheet]] from [http://www.ilovejackdaniels.com/]. | * [[Image:mod_rewrite_cheat.pdf|Mod_rewrite Cheat-sheet]] from [http://www.ilovejackdaniels.com/]. | ||
* [http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml This url] can help writing very basic rewriting rules for mapping directory-like request to a dynamic request (e.g. www.dot.com/page/main -> www.dot.com/index.php?page=main). | |||
[[Category:Computing]][[Category:Web]] |
Latest revision as of 08:29, 22 March 2006
Mod_rewrite, the Apache web server's URL rewriting utility, allows the translation of client requests based on a number of rules. For example:
RewriteRule ^oldstuff\.html$ newstuff.html
will translate a request named oldstuff.html to newstuff.html before it is requested from the server.
Following are a set of useful resources for using mod_rewrite
- apache documentation on mod_rewrite
- File:Mod rewrite cheat.pdf from [1].
- This url can help writing very basic rewriting rules for mapping directory-like request to a dynamic request (e.g. www.dot.com/page/main -> www.dot.com/index.php?page=main).