Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-20 Thread Peter Sawczynec
> From: talk-boun...@lists.nyphp.org [mailto:talk- > boun...@lists.nyphp.org] On Behalf Of federico ulfo > Sent: Wednesday, October 19, 2011 8:55 PM > To: NYPHP Talk > Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess > > Hey, can you share with us how you improved the perfo

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-19 Thread federico ulfo
Dir. > blūstudio > 941.893.0396 > p...@blu-studio.com > www.blu-studio.com > >> -Original Message- >> From: talk-boun...@lists.nyphp.org [mailto:talk- >> boun...@lists.nyphp.org] On Behalf Of Rob Marscher >> Sent: Wednesday, October 19, 2011 10:17 AM >

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-19 Thread Peter Sawczynec
t: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess > > > On Oct 19, 2011, at 12:08 AM, Peter Sawczynec wrote: > > 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] Canno

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-19 Thread Rob Marscher
On Oct 19, 2011, at 12:08 AM, Peter Sawczynec wrote: > 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

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-19 Thread Dan Cech
On 10/18/2011 8:45 PM, Peter Sawczynec wrote: so further this new environement has apache as fast cgi. If that's the case then you need to use: AddHandler php5-fastcgi .htm .html Dan ___ New York PHP Users Group Community Talk Mailing List http://li

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-19 Thread Ajai Khattri
I would check if AllowOverides is switched on for that vhost. Sent from my iPad On Oct 18, 2011, at 8:14 PM, "Peter Sawczynec" wrote: > I am running a legacy website where all the .html files are being served as > php by using some directives in an .htaccess file as follows: > > > > Direc

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Peter Sawczynec
ilto:talk- > boun...@lists.nyphp.org] On Behalf Of Rob Marscher > Sent: Tuesday, October 18, 2011 11:57 PM > To: NYPHP Talk > Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess > > > On Oct 18, 2011, at 11:26 PM, Peter Sawczynec wrote: > > > Okay. Using a diff

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Rob Marscher
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] ___ New York PHP Users

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Rob Marscher
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 engi

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Peter Sawczynec
Of Peter Sawczynec > Sent: Tuesday, October 18, 2011 10:27 PM > To: 'NYPHP Talk' > Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess > > Okay I will fess up in full here. > This is all happening in a virtual hosting environment in which I run > my &g

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Peter Sawczynec
un...@lists.nyphp.org [mailto:talk- > boun...@lists.nyphp.org] On Behalf Of Daniel Convissor > Sent: Tuesday, October 18, 2011 9:43 PM > To: NYPHP Talk > Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess > > Hi Peter: > > On Tue, Oct 18, 2011 at 09:09:16PM -0400, Peter Sawc

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Daniel Convissor
Hi Peter: On Tue, Oct 18, 2011 at 09:09:16PM -0400, Peter Sawczynec wrote: > The index.html page comes up, but I see in the source that several > php snippets such as this are actually printing > out Ouch. Have you asked your hosting company what settings are needed and/or looked at their hel

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Daniel Convissor
Hi: On Tue, Oct 18, 2011 at 08:56:16PM -0400, Rob Marscher wrote: > > On Oct 18, 2011, at 8:14 PM, Peter Sawczynec wrote: > > > > AddType application/x-httpd-php .htm .html > > AddHandler x-httpd-php .htm .html You probably don't need the AddHandler line. I don't in my Apache 2.2 config. > Do

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Peter Sawczynec
<http://www.blu-studio.com> www.blu-studio.com From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On Behalf Of Rob Marscher Sent: Tuesday, October 18, 2011 8:56 PM To: NYPHP Talk Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess On Oct 18, 2011, at 8:

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Rob Marscher
> On Oct 18, 2011, at 8:14 PM, Peter Sawczynec wrote: > I am running a legacy website where all the .html files are being served as > php by using some directives in an .htaccess file as follows: > > DirectoryIndex index.html > AddType application/x-httpd-php .htm .html > AddHandler x-httpd-php

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Peter Sawczynec
u-studio.com From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On Behalf Of Rob Marscher Sent: Tuesday, October 18, 2011 8:25 PM To: NYPHP Talk Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess On Oct 18, 2011, at 8:14 PM, Peter Sawczynec wrote: I am running a le

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Peter Sawczynec
From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On Behalf Of Rob Marscher Sent: Tuesday, October 18, 2011 8:25 PM To: NYPHP Talk Subject: Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess On Oct 18, 2011, at 8:14 PM, Peter Sawczynec wrote: I am running a legacy website wh

Re: [nyphp-talk] Apache 2.2, PHP 5.2 and .htaccess

2011-10-18 Thread Rob Marscher
On Oct 18, 2011, at 8:14 PM, Peter Sawczynec wrote: > I am running a legacy website where all the .html files are being served as > php by using some directives in an .htaccess file as follows: > > DirectoryIndex index.html > AddType application/x-httpd-php .htm .html > AddHandler x-httpd-php .

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

2011-10-18 Thread Peter Sawczynec
I am running a legacy website where all the .html files are being served as php by using some directives in an .htaccess file as follows: DirectoryIndex index.html AddType application/x-httpd-php .htm .html AddHandler x-httpd-php .htm .html This website has now been migrated to a newer