hannibal Posted March 8, 2008 Share Posted March 8, 2008 I have a site where a user can select various multiple items from select boxes to determine their search results. I am using GET as the posting method so that a user can navigate back and forwards with out the "Page Expired" page being displayed and so that they can copy the URL can use it later or send to a friend to see the same search result. This could boviously be quite long, which isn't really too much of a problem. A link may be: www.mysite.com/search.php?location=southwest&location=southeast&car=ford&model=gt&year=1996&year=1997&low_price=2000&high_price=4000 However, I have noticed with sites that use .aspx that they have folders like : www.anothersite.com/location-southwest/car-Ford for example. Another example is www.Autotrader.co.uk. How does copying the folers/directorys reproduce the search? Does anyone have any suggestions how I keep a shorter/tidy url string, or do I simply have to have a mega long string with all my GET parameters? I can't really see a way around it. I am using PHP5 & MySQL 5 (LAMP). Thanks, Hannibal. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 8, 2008 Share Posted March 8, 2008 i suggest that you look into using apache's mod_rewrite. i would google seo friendly urls for examples. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.