NYCPHP Meetup

NYPHP.org

[nycphp-talk] Apache 2.2, PHP 5.2 and .htaccess

Rob Marscher rmarscher at beaffinitive.com
Tue Oct 18 23:58:14 EDT 2011


On Oct 18, 2011, at 11:57 PM, Rob Marscher wrote:
> RewriteEngine On
> RewriteRule (.*).html?$ $1.php [L]

Actually... you might need to persist the query string.  Use this:

RewriteEngine On
RewriteRule (.*).html?$ $1.php [L,QSA]




More information about the talk mailing list