[nycphp-talk] Apache 2.2, PHP 5.2 and .htaccess
Peter Sawczynec
ps at blu-studio.com
Wed Oct 19 00:08:20 EDT 2011
thank you. meanwhile looking at my apache error logs thru godaddy interface
I see only entries like:
[Tue Oct 18 19:43:54 2011] [warn] Cannot get media type from 'x-httpd-php5'
[Tue Oct 18 20:22:03 2011] [warn] Cannot get media type from 'php5-fastcgi'
[Tue Oct 18 20:37:20 2011] [warn] Cannot get media type from 'php5-fastcgi'
[Tue Oct 18 20:46:34 2011] [warn] Cannot get media type from 'fcgid-script'
[Tue Oct 18 20:46:34 2011] [warn] Cannot get media type from 'fcgid-script'
[Tue Oct 18 20:47:04 2011] [warn] Cannot get media type from 'x-httpd-php5'
[Tue Oct 18 20:47:04 2011] [warn] Cannot get media type from 'x-httpd-php5'
[Tue Oct 18 20:47:33 2011] [warn] Cannot get media type from 'x-httpd-php5'
[Tue Oct 18 20:47:33 2011] [warn] Cannot get media type from 'x-httpd-php5'
[Tue Oct 18 20:48:17 2011] [warn] Cannot get media type from 'x-httpd-php5'
I'm googling this now myself.
Warmest regards,
Peter Sawczynec
Technology Dir.
blūstudio
941.893.0396
ps at blu-studio.com
www.blu-studio.com
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-
> bounces at lists.nyphp.org] On Behalf Of Rob Marscher
> Sent: Tuesday, October 18, 2011 11:57 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Apache 2.2, PHP 5.2 and .htaccess
>
>
> 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]
>
> _______________________________________________
> New York PHP Users Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/Show-Participation
More information about the talk
mailing list