Forum Moderators: phranque
Am setting up a web system, and am after rewriting the documentroot to a php handler file
Along the lines of
Rewrite http://www.example.com /handler.php?page=index.html
Already got all .html files running through it in the form of
RewriteRule ^(.*?).htm$ handler.php?page=$1.htm
Just struggling with the root domain
[edited by: jdMorgan at 4:28 pm (utc) on July 16, 2007]
[edit reason] example.com [/edit]
RewriteRule ^(.+\.htm)?$ handler.php?page=$1 [L]
If some special (non-blank) "page=" value is required for requests to the root index page, then a separate rule can be used for just that case.
Jim