SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: PHP and SEO

  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question PHP and SEO

    Hello -

    I'm working on a 'gallery' script, and I found a way that might make things a little easier for me and the client I'm working for.

    Basically, I set up the .htaccess file to use anything before .html as a variable, which I'll then use to pull records from a db.

    Example: user goes to mysite.com/family_movies.html

    The script passes you to gallery.php, and makes variables of family and movies. The page then shows you records which are movies related to family. I'm also going to have meta info pulled from the db.

    Basically this would make things easy on the client, because to 'create' new pages all they have to do is link to them (eg. vacation_photos.html, birthday_movies.html etc)

    My 1st Question: (possibly followed by others)
    - Will this method allow me to submit URLs to search engines? The pages aren't really 'on the server', but it will show you what you want based on whatever is entered before the .html

    Thanks for any insight!

  2. #2
    SitePoint Enthusiast SilkySmooth's Avatar
    Join Date
    May 2003
    Location
    In the PHP Engine :-)
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, just think of the HTML being the public version of the site and the PHP being the private version. Users and search engines only see the HTML version whilst you get to see the gallery.php version.
    ---------------------
    -- SilkySmooth --
    ---------------------
    Directory Share | Free phpLD Mods

  3. #3
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi...

    What do your URLs look like?

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  4. #4
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    The search engines see what your users see.

  5. #5
    SitePoint Zealot
    Join Date
    Jul 2006
    Location
    Dundee, Scotland
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by silentorphan View Post
    Basically, I set up the .htaccess file to use anything before .html as a variable, which I'll then use to pull records from a db.

    Example: user goes to mysite.com/family_movies.html

    The script passes you to gallery.php, and makes variables of family and movies. The page then shows you records which are movies related to family. I'm also going to have meta info pulled from the db.

    Out of curiosity if you went to mysite.com/movies_family.html would the same results be shown? If the answer is yes then you could get flagged as duplicate content if the search engines index both.

  6. #6
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think stymiee's post is the crux of the issue here.
    IE, Googlebot, Slurp, Firefox, a cURL script or a XHR call from javascript are all just client requests to your server.
    They neither have, nor need knowledge of the physical files on your file system. All that matters is the URL, the content and possibly the headers. How your server goes about producing that data is not of concern to the client side.

  7. #7
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome - thanks everyone. I'm putting the script to work now


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •