Given a search term like this:
/amazon_store?Keywords=foo&SearchIndex=Books
I'd like to be able to link to a URL like this:
/amazon_store/SearchIndex/Books/Keywords/foo
Which would provide the same results. This would allow creating top-level links to a variety of categories without the appearance of parametrized searches.
(I'm trying to create a top-level menu structure that doesn't use parameterized URLs for SEO purposes.)
Is there a way to do this with panels/pages/etc? .htaccess mod_rewrite? Or some other way? Or am I barking up the wrong tree...?
I see one of the example sites, http://www.thelawnmowersite.com/, doing something like this but it looks like they created a bunch of nodes and taxonomy terms and a view to display them. Or is there an easier way?
For example: there's a link titled "Riding Mowers" that takes you to this URL:
http://www.thelawnmowersite.com/Search-Lawn-Mowers/results/taxonomy%3A13
Comments
Comment #1
mcurry commentedUpdating issue title.
Comment #2
rfayThere's no reason it shouldn't be done this way. It does affect a fair bit of code. I'm in favor. The problem is that you lose the parameter=value semantics, which are pretty nice.
Comment #3
mcurry commentedI suggest we allow both, leaving it up to the webmaster as to which he/she wants to use.
Whenever the site visitor uses the search form(s), the module could fall back to using the query parameters (?Keywords=foo&SearchIndex=Books) form. (This could be a configurable behavior.)
Looks like I'll be hacking up your pretty little module :D
Comment #4
mcurry commentedAssigning to yours truly.
Comment #5
niccolox commentedsubscribing