| Posted: 20 June 2008 at 8:07am | IP Logged
|
|
|
Hi!
I wonder if you can help me? I really need some help and i've not done this before so please forgive me if my questions seem obivous or stupid...
I have a url which loads after the user clicks a search button.
http://www.domain.com/category-directory/search.asp?search=searchword&FormButton1.x=7&FormButton1.y=10
What I am struggling with is 2 things.
1. How can I rewrite the URL so that it appears like this.
http://www.domain.com/category-directory/searchword.asp
Knowing that the FormButton1.x=7&FormButton1.y=1 values will change all the time depending on where the user clicks on the search button graphic so in other words is it possible to rewrite these variables with wildcards so that all values are rewritten?
Like
http://www.domain.com/category-directory/search.asp?search=searchword&FormButton1.x=*any value&FormButton1.y=*any value
becoming
http://www.domain.com/category-directory/searchword.asp
2.
Some user won't use the search button and will simply hit enter creating a url like
http://www.domain.com/category-directory/search.asp?search=searchword
How can I rewrite this URL so that it appears as
http://www.domain.com/category-directory/searchword.asp
In other words so no matter if the user hits enter in the search box or presses the search button the url will always be
http://www.domain.com/category-directory/searchword.asp
Thanks guys. Really looking forward to hearing from anyone who can help me with this. I've been struggling for a few days now and haven't quite gotten the hang of it yet :(
|