[nycphp-talk] Apache 2.2, PHP 5.2 and .htaccess
Rob Marscher
rmarscher at beaffinitive.com
Tue Oct 18 23:57:17 EDT 2011
On Oct 18, 2011, at 11:26 PM, Peter Sawczynec wrote:
> Okay. Using a different tactic, what mod rewrite would for this given
> subdirectory cause
> all requests to:
>
> anyfile.html or anyfile.htm to always map to anyfile.php
>
> ...not issuing 301 or 302 and without the browser or search engine spiders
> and bots knowing.
>
> If that is possible?
Give this a shot:
RewriteEngine On
RewriteRule (.*).html?$ $1.php [L]
More information about the talk
mailing list