SEO with PHP templates

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
jkashu
Forum Commoner
Posts: 45
Joined: Tue Jan 30, 2007 12:00 pm

SEO with PHP templates

Post by jkashu »

I need to make a basic template system with PHP. My thinking is that I could have a template.php and GET the name of the specific page. The body html could then be read from the file that is GOTTEN:

template.php?page=contactus.txt

What are the SEO implications of this??? In general, how do search engines react to pages that are not static???
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: SEO with PHP templates

Post by John Cartwright »

Most search engines will treat the query string just the same as any part of the url. However, I can't speak for all search engines.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: SEO with PHP templates

Post by matthijs »

You can also rewrite the URLs, for example with htaccess, so that
yoursite.com/about/
gets ?page=about in the background
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: SEO with PHP templates

Post by alex.barylski »

I think technically, most search engines are capable of following URI regardless of how it's constructed.

Chris C, a while back made an interesting point. That the URL is part of the interface, so just like the GUI -- cleaner is better.

For that reason, I always use clean URL's nowadays. :D
Post Reply