Mod Rewrite for PHP site: Web Site Ranking In Google

Discussion in 'Google' started by MattBOnline, Jul 21, 2011.

  1. #1
    Hi,

    I am redesigning a web site changing it from a HTML web site to a PHP web site using a MySQL Database. I know Google does not like URL's with question marks in. For this reason I am doing a Mod Rewrite.

    I am using this code in the .htaccess file:

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([a-zA-Z0-9-]+)$ product.php?productname=$1

    This changes:
    www.site.com/product.php?productname=name1

    to:
    www.site.com/name1

    Can someone explain to me how Google will rank this? Does google crawl and rank every link?

    Obviously I want all pages ranked:
    www.site.com/name1
    www.site.com/name2
    www.site.com/name3
    www.site.com/name4
    www.site.com/name5
    www.site.com/name6
    etc

    Will Google not know the site is a PHP site (because of my Mod Rewrite)?

    Matt.
     
    MattBOnline, Jul 21, 2011 IP
  2. Torafox

    Torafox Peon

    Messages:
    220
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    not any different than previously, in all likelihood.


    no. just the ones the bot likes.


    in theory - if your modrewrite is done everywhere - yes. however it doesn't really matter. the change you're talking about here is mostly cosmetic and is unlikely to have any significant influence on indexing or rankings.
     
    Torafox, Jul 29, 2011 IP