prasing php as html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

prasing php as html

Post by rami »

if i use html extension for php files will it be more search engine friendly as they saw search engines dont like dynamic content..
i am saving php files as htm and making arragement in server to parse as php

will it enhance search engine effiecncy?
will it make things slower? loading of page?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Search engines don't care what the file extension is on the whole so long as they understand the content sent. PHP doesn't care either.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Post by panic! »

does google no longer prefer

products/nike/

to

products.php?id=nike

?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

panic! wrote:does google no longer prefer

products/nike/

to

products.php?id=nike

?
You can find that out by reading their faqs and so forth.
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post by Rovas »

Like is stated in a previous post search engines don' t care about extension, it' s more of an esthetic part. To do this you can use mod_rewrite (an Apache module).
Here is a tutorial http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html. And here a tutorial on how to simplify urls http://www.goodphptutorials.com/track/109.
Go to http://www.sempo.org/learning_center/ to find out more on how search engines work and what can you do to improve your standings in search.
Post Reply