944,038 Members | Top Members by Rank

Sep 21st, 2005
0

mod rewrite problem (tomcat with od_jk as well)

Expand Post »
I've tried different approaches on this and am losing the battle - perhaps someone here will have some guidance that could help me to be winning!

the url is normally like
arecipe.jsp?name=Cheese+Pizza&ingredient=Flour&culture=Italian&Type=

I would like that to look in the browser something like arecipe.jsp/name/Cheese+Pizza/ingredient/Flour/Culture/Italian
and then in the example type is empy i would want the url rewrite to be empty, so it wouldn't add the name,ingredient, culture if it didn't have anything assigned in the argument. or the other way around.

guess what i really mean is that my desire is to provide a link that looks like the second example but delivers the functionality i now get from the first. also, i want this to only work on some file names and not others. ugh.

so, if anyone looks at this and says 'oh, no brainer' i would be so grateful if you could show me the correct way to approach it.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bsmith is offline Offline
9 posts
since Sep 2005
Sep 21st, 2005
0

Re: mod rewrite problem (tomcat with od_jk as well)

OK, that was lame and unclear what I'm really looking for with mod_rewrite, I want to make sure I got it right, sorry.

SO if i have a link in a flat page that looks like

buncharecipes.jsp/title/pistachio
it will pass
buncharecipes.jsp?title=pistachio

but i also want buncharcipes.jsp/type/pie/ingredient/apple
to call buncharecipes.jsp?type=pie&ingedients=apple

without it doing some redirect type thing as far as the user can see.

there.

sorry for the verbosity.

Quote originally posted by bsmith ...
I've tried different approaches on this and am losing the battle - perhaps someone here will have some guidance that could help me to be winning!

the url is normally like
arecipe.jsp?name=Cheese+Pizza&ingredient=Flour&culture=Italian&Type=

I would like that to look in the browser something like arecipe.jsp/name/Cheese+Pizza/ingredient/Flour/Culture/Italian
and then in the example type is empy i would want the url rewrite to be empty, so it wouldn't add the name,ingredient, culture if it didn't have anything assigned in the argument. or the other way around.

guess what i really mean is that my desire is to provide a link that looks like the second example but delivers the functionality i now get from the first. also, i want this to only work on some file names and not others. ugh.

so, if anyone looks at this and says 'oh, no brainer' i would be so grateful if you could show me the correct way to approach it.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bsmith is offline Offline
9 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: Serving Files Outside the Apache Root
Next Thread in Linux Servers and Apache Forum Timeline: .htacess Is Not Working





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC