This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Apache Rewrite Rule Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Rewrite Rule" Watch "Apache Rewrite Rule" New topic
Author

Apache Rewrite Rule

Win Loo
Greenhorn

Joined: Feb 14, 2008
Posts: 1
Hi,

I want all the white spaces (added anyway) from my url to be truncated.

eg.
"www.xyz.com/product- category/winterwear/ mens/"

to be converted to
"www.xyz.com/product-category/winterwear/mens/"

White space could be anywhere in the URL. I want apache rewrite rule to be
written for this purpose. Any other way is also welcome.


Any help would be appreciated.

Thanks,
Win Loo
 
Don't get me started about those stupid light bulbs.
 
subject: Apache Rewrite Rule
 
Similar Threads
URL Rewrite
struts url-pattern problem..
Does mod_rewrite work with mod_jk?
url encoding
How to call struts action as Website default home page