Making my search queries more SEO friendly

Discussion in 'PHP' started by Digerati, Jun 12, 2007.

  1. #1
    I run a property listing website at http://www.kualalumpurproperty.com and would like to have Google index the property posts. For example, when you hit Go, the URL is shown as:

    http://www.kualalumpurproperty.com/search.php?c=&s=&search_city=&search_PropertyType=&MinPrice=&MaxPrice=&rooms1=&rooms2=&bath1=&bath2=&AgentID=&before=&school=&transit=&park=&ocean_view=&lake_view=&mountain_view=&ocean_waterfront=&lake_waterfront=&river_waterfront=&search_category=

    What are your suggestions?

    Currently I have url_rewrite for the city name such as http://www.kualalumpurproperty.com/search_city/Ampang
     
    Digerati, Jun 12, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Google doesn't "submit forms" as a user would and would not index that page anyway unless there was a direct link to it.

    If you still want to make it SEO friendly, use a redirect on search.php eliminating vars that are empty and then you can use SEO friendly URLs

    e.g.
    domain.com/search.php/city:Ampang,field2:value2
    domain.com/search/city,Ampang,field2,value2
     
    krt, Jun 12, 2007 IP
  3. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just to add to what krt said you're more than likely going to need to make use of mod_rewrite or a similiar module on non apache web servers to rewrite the url's so it sends them to search.php?a=b&c=d ect.
     
    InFloW, Jun 12, 2007 IP
  4. Digerati

    Digerati Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So unless I directly link to the listings, Google won't spider them? Is my problem the "dark web", where Google can't get to content in databases?
     
    Digerati, Jun 13, 2007 IP
  5. pixelcoder

    pixelcoder Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I've had instances where google actively spiders my database content [with no links to specific content anywhere] I'd suggest you use mod_rewrite - simply google for a list of articles: google.com/search?hl=en&q=mod_rewrite+AND+php&meta=
     
    pixelcoder, Jun 14, 2007 IP
  6. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #6
    there is no need to rewrite form submission URL results as google will not submit forms.

    if you want all links to be SEO friendly, i would advise that. Use php to replace the &stuff=stuff to nicer things, and se mod rewite to configure it on your server:)
     
    mikey1090, Jun 14, 2007 IP
  7. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #7
    Haven't heard the term "dark web" but yes, you are right. One option is to use "quick searches" with pre-defined search criteria, these will get indexed and can have custom URLs so are better from an SEO perspective.
     
    krt, Jun 14, 2007 IP