Form Variables in URL

Discussion in 'HTML & Website Design' started by Erind, May 9, 2008.

  1. #1
    Sorry if this is the wrong category. I don't know what it applies to.

    I'm making a site with a search form, but I want it to be search engine friendly/user friendly.

    I want the keyword used to appear in the url. I can do a "Get" method form but it isn't very effective. Too messy, index.php?stuff=otherstuff..

    Pixel2Life.com has a different system, and that is what I am after. When you search, it goes to http://www.pixel2life.com/search/all/Keyword/1/


    How is this done????
     
    Erind, May 9, 2008 IP
  2. X.Homer.X

    X.Homer.X Peon

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you could always use search.php?k=keyword instead of search=keyword, kind of makes it shorted, but if you want search/keyword/1 then i really dont know,
     
    X.Homer.X, May 9, 2008 IP
  3. Erind

    Erind Peon

    Messages:
    663
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah i realize that but i want the slashes. Sooooo much cooler...
     
    Erind, May 9, 2008 IP
  4. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I believe that they are using mod_rewrite.

    It'a an apache thingy...
     
    nicangeli, May 10, 2008 IP
  5. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #5
    Yes, Nicangeli is right. If you have WordPress or MovableType set up to use SEO friendly URLs the .htaccess file should have an example of how to set that up for the url.

    Q...
     
    QiSoftware, May 10, 2008 IP
  6. Erind

    Erind Peon

    Messages:
    663
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Erind, May 10, 2008 IP
  7. zuccs

    zuccs Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It looks neater, but it does not make your site better SEO wise... (Google is smarter now..)

    Pretty nice tute here: h ttp://edrackham.com/apache/beginners-mod_rewrite-tutorial/
     
    zuccs, May 10, 2008 IP