I'm not sure David ever adviced to use Tuckey. I asked once but I got no clear answers but that OFBiz is already automatically rewriting url to be search engines friendly. I'm not sure why you want to rewrite URLs but why not using mod_rewrite direcly (though Tuckey should work also, I finally used mod_rewrite) ? Note also tha Google is less and less prone to errors while indexing weird URLs.

HTH

Jacques

From: "masionas" <[email protected]>

Hi Guys,

I have searched the lists for a good filter to rewrite urls and found a post
where David adviced to use Tuckey filter. So I downloaded that one, put the
jar file in the lib folder and added conf info into web.xml of webapp in my
component. In other words followed the guide from the lib developer. But it
seems like it is just not loading. When I request
http://localhost:8080/rewrite-status it shows Bad request 400 HTTP error.

Here is where I placed it in web.xml ( above ContextFilter)


...
   <filter>
       <filter-name>UrlRewriteFilter</filter-name>

<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
<init-param>
           <param-name>logLevel</param-name>
           <param-value>DEBUG</param-value>
       </init-param>

   </filter>
   <filter-mapping>
       <filter-name>UrlRewriteFilter</filter-name>
       <url-pattern>/*</url-pattern>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
   </filter-mapping>


   <filter>
       <filter-name>ContextFilter</filter-name>
       <display-name>ContextFilter</display-name>
       <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
       <init-param>
...



What I am missing?
--
View this message in context: 
http://www.nabble.com/Can%27t-get-URL-Rewrite-Filter-to-work-tp21919012p21919012.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Reply via email to