Professional Web Applications Themes

PHP urls with variable data in search engine results - PHP Development

Howdy I've been given conflicting answers about search engines picking up urls like: [url]http://mysite.com/index.php?var1=1&var2=2&var3=3[/url] Do search engines pick up these urls? I've been considering converting a site of mine to PHP-Nuke, but if the individual modules aren't picked up in search engines I'm not going to do it. Thanks phpKid...

  1. #1

    Default PHP urls with variable data in search engine results

    Howdy
    I've been given conflicting answers about search engines picking up
    urls like: [url]http://mysite.com/index.php?var1=1&var2=2&var3=3[/url]
    Do search engines pick up these urls?
    I've been considering converting a site of mine to PHP-Nuke, but if
    the individual modules aren't picked up in search engines I'm not
    going to do it.
    Thanks
    phpKid
    phpkid Guest

  2. #2

    Default Re: PHP urls with variable data in search engine results

    > I've been given conflicting answers about search engines picking up
    > urls like: [url]http://mysite.com/index.php?var1=1&var2=2&var3=3[/url]
    > Do search engines pick up these urls?
    For the most part, Google is the only search engine that counts. :-)

    Google seems to be okay with URLs like that - as long as it finds the URL
    within a site, it'll follow it and index it. Of course, you don't want
    something like an ID in the that will change with each session. The URL
    should always be the same for the same page.

    To make the URLs shorter and to make it more likely that search engines will
    index the page, you might do something like I'm doing with most of my pages.

    I use Apache's Rewrite directive to shorten the URLs and make them look like
    normal .html. For example, I have the following in my .htaccess file:

    RewriteEngine on
    RewriteRule ^news-(.*)-(.*)\.html$
    index.php?nilsson=1&action=HOME&subaction=DISPLAY& detail=$1&articleref=$2

    This makes the following URL:

    [url]http://www.harrynilsson.com/news-48-24269.html[/url]

    do the same as:


    [url]http://www.harrynilsson.com/index.php?action=HOME&subaction=DISPLAY&detail=48& articleref=24269[/url]

    Another trick you can use is to add "AcceptPathInfo On" to the .htaccess
    file. Then you can use a URL like:

    [url]http://www.harrynilsson.com/index.php/home/display/48/24269[/url]

    Inside your php code, $_SERVER [ 'PATH_INFO' ] will be set to
    "/home/display/48/24269". You can "explode" it into the individual
    parameters:

    list($action, $subaction, $detail, $articleref) = explode("/",
    $_SERVER['PATH_INFO']);

    I prefer the first method even though it requires editing the .htaccess file
    for different sets of parameters. I don't have any good reason for
    prefering the method other than that the URLs look more like regular HTML
    pages.

    -- Roger
    Harry Nilsson's "The Point!" on DVD
    [url]http://www.harrynilsson.com/news-48-24269.html[/url]


    Roger Smith Guest

Similar Threads

  1. SES Search Engine Safe URLS on CF Server
    By backintimeintl in forum Coldfusion Server Administration
    Replies: 1
    Last Post: July 30th, 03:13 PM
  2. Sending search results to a results page..with asp
    By dan.how in forum Dreamweaver AppDev
    Replies: 1
    Last Post: May 26th, 04:18 PM
  3. IIS 6 CFMX 7 Cluster - 404 index search safe urls issue
    By John2 in forum Coldfusion Server Administration
    Replies: 0
    Last Post: April 28th, 10:34 AM
  4. Junk generation in search engine results
    By Susan_Corleto@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 28th, 11:54 PM
  5. dynamic URLS convert to static URLS for search engines
    By Steve T. in forum ASP.NET Web Services
    Replies: 7
    Last Post: March 4th, 03:16 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139