Multiple pages vs one page

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
portofino
Forum Newbie
Posts: 1
Joined: Tue Dec 22, 2009 11:45 pm

Multiple pages vs one page

Post by portofino »

Hi!

I wonder what's the best way to organize a website. With multiple pages like "index.php, about.php, news.php, contact.php" or just a single index.php with GET like this "index.php?page=about, index.php?page=news, index.php?page=contact" ?

Which is the best practice?

Will influence SEO ?

Regards
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: Multiple pages vs one page

Post by oscardog »

I personally find having multiple pages a lot easier to manage, and it's far better for SEO, but you can just use .htaccess to rewite index.php?get=about.php to just about.php.

It's all about personal preferences but the multiple pages route is a lot easier :)
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Multiple pages vs one page

Post by omniuni »

Personally, I use a template setup with index.php?page=blah. I find it easy to manage, and change. For SEO, the biggest point is to try to avoid numbers. index.php?p=contact is fine. index.php?p=3z86 is not going to help. If you want to get the best setup for SEO, use mod_rewrite and make your page vars look like directories:

http://example.com/contact vs http://example.com/index.php?p=contact
Post Reply