Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Open Source Projects
Tuckey UrlRewrite issue
Kevin P Smith
Ranch Hand
Posts: 362
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
Wasn't sure where to put this so put it in a 'general' forum...
Just wondering if someone could explain to me what will probably be the obvious
mistake in my setup. I have the following...
web.xml
<filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> <init-param> <param-name>confReloadCheckInterval</param-name> <param-value>1</param-value> </init-param> </filter>
urlrewrite.xml
<urlrewrite> <rule> <from>^/home</from> <to>/pages/page1.html</to> </rule> </urlrewrite>
Have the HTML page under
C:\Servers\Tomcat7\webapps\shop\pages\page1.html
../etc/host
127.0.0.1 shop.mydomain.com
But when I goto...
http://shop.mydomain.com/home
I get a 404 error.
Cheers in advance
Kevin P Smith
Ranch Hand
Posts: 362
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
http://www.tuckey.org/
URL Rewriting plug-in
From the examples it looks like what I am doing is correct.
Kevin P Smith
Ranch Hand
Posts: 362
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Simply, so stupid!!!
web.xml
<filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping>
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Session handling in JSF
Struts2 integration with Spring Security
config my-faces & tomahawk & Trinidad
Problem Migrating a Project from Weblogic 9.2 to Tomcat 6.0.29
problem passing param in included page when using filter
More...