HighDots Forums  

Dynamic or static pages?

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss Dynamic or static pages? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fernando Rodríguez
 
Posts: n/a

Default Dynamic or static pages? - 09-20-2006 , 10:50 AM







Hi,

I'm about to add many similar pages to my site (the contents of a catalog).
I was planning to use php, so the urls would be something like: www.qwerty.com/catalog.php?item=XYZ

Woudl it be preferable to all the pages as html static files and upload the
whole lot instead? What approach works better with Google?

Thanks!

Fernando



Reply With Quote
  #2  
Old   
roscoe
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 11:00 AM






I have done a number of sites with large numbers of both dynamic pages
and static pages.
I think that Google prefers the static sites, and tends to spider them
more quickly.
You can always trick the spiders into thinking it is a static site by
using a .htaccess hack or a 404 trick depending on your server.

Reply With Quote
  #3  
Old   
z
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 11:07 AM



Fernando Rodredguez wrote:

Quote:
Hi,

I'm about to add many similar pages to my site (the contents of a
catalog).
I was planning to use php, so the urls would be something like:
www.qwerty.com/catalog.php?item=XYZ

Woudl it be preferable to all the pages as html static files and upload
the
whole lot instead? What approach works better with Google?

The best approach would probably be dynamic pages with rewritten URLs.

So the PHP would generate:
www.example.com/catalog.php?item=XYZ

and your .htaccess would rewrite it like this:
www.example.com/catalog/item/XYZ


Reply With Quote
  #4  
Old   
Fernando Rodríguez
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 11:14 AM



Hello z,

Quote:
whole lot instead? What approach works better with Google?
The best approach would probably be dynamic pages with rewritten URLs.

So the PHP would generate:
www.example.com/catalog.php?item=XYZ
and your .htaccess would rewrite it like this:
www.example.com/catalog/item/XYZ
Where can I find more info on this technique? O:-)

Thanks!




Reply With Quote
  #5  
Old   
sandy
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 11:44 AM




Fernando Rodríguez wrote:
Quote:
Hi,

I'm about to add many similar pages to my site (the contents of a catalog).
I was planning to use php, so the urls would be something like: www.qwerty.com/catalog.php?item=XYZ

Woudl it be preferable to all the pages as html static files and upload the
whole lot instead?
Pages that are truely dynamic (results of an interactively defined
database
query) have to stay that way.

But most pages don't have to be dynamic at all.
If you have home-rolled software that generates dynamic pages
at run time, and if you control the source, it isn't much of a lift
to run all the print statements through a function, that has the
optional ability to name a file and print it out to the file system
as static html.

Then you can regenerate a whole site with a mouse click
any time you want, and you don't have to fight with mod_rewrite.

Site_Bot does that:
http://www.phpclasses.org/browse/package/1463.html

I'm sure there are others.



Reply With Quote
  #6  
Old   
z
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 12:21 PM



Fernando Rodredguez wrote:

Quote:
Hello z,

whole lot instead? What approach works better with Google?
The best approach would probably be dynamic pages with rewritten URLs.

So the PHP would generate:
www.example.com/catalog.php?item=XYZ
and your .htaccess would rewrite it like this:
www.example.com/catalog/item/XYZ

Where can I find more info on this technique? O:-)

Thanks!
Tutorials:
http://www.google.com/search?q=mod_rewrite+tutorial

Cheat sheet located here:
http://www.ilovejackdaniels.com/apac...e-cheat-sheet/

Official Docs:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html



Reply With Quote
  #7  
Old   
Brian Wakem
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 12:22 PM



Fernando Rodríguez wrote:
Quote:
Hello z,

whole lot instead? What approach works better with Google?
The best approach would probably be dynamic pages with rewritten URLs.

So the PHP would generate:
www.example.com/catalog.php?item=XYZ
and your .htaccess would rewrite it like this:
www.example.com/catalog/item/XYZ

Where can I find more info on this technique? O:-)

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html



--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png


Reply With Quote
  #8  
Old   
John Bokma
 
Posts: n/a

Default Re: Dynamic or static pages? - 09-20-2006 , 12:42 PM



Fernando Rodríguez <frr (AT) fernando-rodriguez (DOT) com> wrote:

Quote:
Hi,

I'm about to add many similar pages to my site (the contents of a
catalog).
I was planning to use php, so the urls would be something like:
www.qwerty.com/catalog.php?item=XYZ

Woudl it be preferable to all the pages as html static files and
upload the whole lot instead? What approach works better with Google?
It doesn't matter, since each page is dynamically in a way: a user agent
requests the page, and the webserver has to generate it in one way or
another (for example by reading the data of harddisk).

However, Google does an attempt to distinguish between pages that are
coming of disk, and pages that are generated on the fly by software other
then the webserver.

One thing they use is how the URL looks (since the webserver doesn't tell
Google how a page was generated). So if you use mod_rewrite to make your
URLs look "static" that part is covered.

I have no idea if Google also checks other headers (maybe yes), but those
all can be generated by PHP. In short, you can hide each and every fact
that a page was generated on the fly using PHP.

--
John Need help with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-help.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.