Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: removing many variables from a url Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
confusion1971
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 1
Posted: 20 June 2008 at 8:07am | IP Logged Quote confusion1971

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 :(

Back to Top View confusion1971's Profile Search for other posts by confusion1971
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7460
Posted: 20 June 2008 at 1:46pm | IP Logged Quote Lexey

You could do both things with the help of client-side javascript. And there is no other way.
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum