[nycphp-talk] Parse HTML Files as PHP
Peter Sawczynec
ps at blu-studio.com
Sun Feb 22 13:20:20 EST 2009
Okay, well thank you to all for the insightful responses so far.
So this probably is an SEO issue. In that I am looking at a niche all
HTML site
that has been up for awhile and has gained decent google relevancy in
search results.
I am concerned that changing all the page names from
"topic_specific_file_name.html" to
"topic_specific_file_name.php" might make all the pages appear as all
new pages to
google and re-set the search results standing for the entire site.
So I was considering the *.html parsed thru PHP technique to get PHP
into all the pages.
And in a dark personal corner I did like a little the modicum of
security through obscurity that
this technique might gain.
So now if anyone with some SEO/search background can weigh in on the
page name change issue
that would be great.
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 tedd
Sent: Sunday, February 22, 2009 8:44 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Parse HTML Files as PHP
At 11:15 PM -0500 2/21/09, Ajai Khattri wrote:
>On Fri, 20 Feb 2009, Peter Sawczynec wrote:
>
>> Anyone have any comment on this strategy pro or con?
>
>Not good for performance or scalability. A PHP framework with routing
>should allow you use URLs with .html at the end without resorting to
>changing Apache's behavior.
>--
>Aj.
Now that I think about it, Apache's behavior at default is to
consider embedded php -- so I'm not sure why one would want to add a
directive to parse html files as php.
Furthermore, if you don't wrap your html code in a heredoc wrapper,
the html code will cause the script to crash.
So maybe we need to investigate this a bit further -- why do you want
to do this Peter?
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php
More information about the talk
mailing list