| | |
mod rewrite problem (tomcat with od_jk as well)
![]() |
•
•
Join Date: Sep 2005
Posts: 9
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Sep 2005
Posts: 9
Reputation:
Solved Threads: 0
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.
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.
•
•
•
•
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.
![]() |
Similar Threads
- Looking to exchange links with PR5 sites or above (Relevant Link Exchanges)
- problem in tomcat (JSP)
- mod rewrite directories to subdomains help (Linux Servers and Apache)
- regarding vbulletin mod rewrite (Linux Servers and Apache)
- Mod rewrite for help desk knowledge base (Linux Servers and Apache)
- IPB 2.0.0 mod rewrite (Search Engine Optimization)
- jsp will lost its session while subdomain-rewrite applied (JSP)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Serving Files Outside the Apache Root
- Next Thread: .htacess Is Not Working
| Thread Tools | Search this Thread |
.net apache apple asus bbc bluegene centos cisco citrix cloud cloudcomputing datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





