1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unique page URL VS PHP auto-generated page URL

Discussion in 'Black Hat SEO' started by J0kerz, Feb 12, 2011.

  1. J0kerz

    J0kerz Supreme Member

    Joined:
    Nov 2, 2009
    Messages:
    1,414
    Likes Received:
    435
    Occupation:
    IM
    Location:
    There
    Okay here is the deal.

    I am currently working on a brand new dynamic website that will have thousand of pages and more pages will be added on a daily basis.
    The thing is that each of these pages will have the same design template, only the main content will be different.

    I have two choices.

    I could create 1000 unique php/html files

    Ex:

    Name1.html
    Name2.html
    Name3.html

    OR

    I could create only ONE php file and use the GET parameters to auto generate the content.

    Ex:

    page.php?name=Name1
    page.php?name=Name2
    page.php?name=Name3

    My question is, would it make a difference for SEO?

    IMO, 1000 uniques pages is better but its alot more work. And let say I need to create 100 new pages each week, its gonna be tons of work. If I use the PHP GET parameters way, I would only need to deal with one PHP file and a Database on the backend.

    Does page.php?name=Name1 and page.php?name=Name2 are considered two distinct pages by Google? Or its the same page( page.php).

    I think Matt Cutt talked about this in one of his videos on Youtube but I cant seem to find the link. If anyone have any more infos on this, please let me know.

    Cheers,
    ;)
     
  2. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,207
    If you can you should stick with clean urls (no query parameters). But you have more choices than what you've described. Look into making an .htaccess rewrite that gives you the best of both worlds... to the outside world you have clean urls that look like hundreds of standalone pages. Internally the urls are rewritten to your page.php and are actually dynamic. Very easy to do.
     
    • Thanks Thanks x 1
  3. jimboslice

    jimboslice Registered Member

    Joined:
    Jan 13, 2011
    Messages:
    84
    Likes Received:
    29
    You can use your php generated urls then use the htaccess file to write rules to make them appear as static clean urls :D
     
    • Thanks Thanks x 1
  4. buzzinusa

    buzzinusa Registered Member

    Joined:
    Nov 5, 2009
    Messages:
    76
    Likes Received:
    34
    Location:
    India
    page.php?name=Name1 and page.php?name=Name2 are considered different pages.

    I would suggest you to use mod rewite to have some thing like this

    page/name1
    page/name2
     
    • Thanks Thanks x 1
  5. RuiGomes

    RuiGomes BANNED BANNED

    Joined:
    Jun 12, 2010
    Messages:
    700
    Likes Received:
    238
    Google will not consider page.php?get=1 and page.php?get=2 as the same URL.

    However, you don't need to create all the files. Just use PHP as you normally would and then use an .htaccess like this:

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ page.php?p=$1 [L,QSA]
    If a user access http://www.domain.com/catsanddogs, it will be shown the page.php?get=catsanddogs.

    This gets you the easiness of PHP with the SEO benefit!
     
    • Thanks Thanks x 1
  6. J0kerz

    J0kerz Supreme Member

    Joined:
    Nov 2, 2009
    Messages:
    1,414
    Likes Received:
    435
    Occupation:
    IM
    Location:
    There
    Thanks for the advices guys!

    mod_rewrite for the win !

    :)