Deprecated: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/SNF/users.inc on line 1120

Deprecated: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 520

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 551

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 557

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/SNF/users.inc on line 1122

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1347

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1009

Deprecated: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 2195

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1014

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1356

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 1387

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/SNF/users.inc on line 1130

Deprecated: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/wiki.inc on line 38

Deprecated: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 520

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 551

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 557

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/wiki.inc on line 40

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1347

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1009

Deprecated: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 2195

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1014

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1356

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 1387

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/wiki.inc on line 48

Deprecated: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 227

Deprecated: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 520

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 551

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 557

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 229

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1347

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1009

Deprecated: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 2195

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1014

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1356

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 1387

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 238

Deprecated: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 265

Deprecated: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 520

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 551

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 557

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 267

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1347

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1009

Deprecated: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 2195

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1014

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1356

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 1387

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 276

Deprecated: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 451

Deprecated: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 520

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 551

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 557

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 453

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1283

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1009

Deprecated: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 2195

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1014

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB/common.php on line 1292

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/DB.php on line 1387

Deprecated: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /home/fhazel/include/icky/article.inc on line 461
SNF wiki: mod_rewrite

mod_rewrite


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 702

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 702

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 720

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhazel/lib/php/markdown.101c.php on line 1143

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser.php on line 180

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser/Filter/Links.php on line 69

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser/Filter/Lists.php on line 80

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser/Filter/Images.php on line 72

Deprecated: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /home/fhazel/pear/php/HTML/BBCodeParser/Filter/Email.php on line 69

**mod_rewrite** is an Apache module that rewrites URLs on the fly.

What does that mean and why would you want to do it? Say, for example, that your PHP application for pog collectors expects URLs of the form /pogs/script.php?pogid=34234. You could use mod_rewrite to hide that ugly URL — with the right mod_rewrite rule, end users could access an aesthetically pleasing URL like /pogs/34234/, which would map in the background to /pogs/script.php?pogid=34234.

Say that your PHP application for pog collectors is eventually rewritten in Python, and its URLs become something like /pogs/script.py?pogid=34234. Again, with mod_rewrite you can retain the public URL /pogs/34234/, making implementation changes transparent to users. See: Cool URIs don’t change

For specific examples of using mod_rewrite, you can look at the .htaccess at the root of just about every major SNF directory. The grue york times .htaccess is an interesting one, because it was generated via a Movable Type template when I switched all of the blog entries to a new URL scheme; it prevents any old incoming links from breaking.

[ article last updated 2008-08-05 11:40:27 by cobra libre ]