Questions tagged [tuckey-urlrewrite-filter]
An rule-based URLRewrite filter for Java Servlet technologies, similar to apache's mod_rewrite.
248
questions
1
vote
1
answer
38
views
How Can I Create a Tuckey Passthrough Rewrite Rule for Just the Root of a Folder that Already Exists on the Filesystem?
I'd like to create a Tuckey rewrite rule that matches only when the URL points to the root of a particular subfolder like this: http://localhost/foo (or http://localhost/foo/)
In this scenario, the /...
0
votes
1
answer
47
views
class object value is equal to null in Java Spring
I am working on Java Spring project, where bean of service S is defined in xml file. I have a class A whose method 'getA' is called from urlrewrite.xml rule, and there is a method defined in service S,...
0
votes
0
answers
67
views
XML rule to implement UrlRewriteFilter
I am trying to write a rule to enable UrlRewriteFilter for my swagger configuration, but i was not successful. Below is the example i tried.
I want to replace /swagger/springfox.css?v=3.0.0 with /...
0
votes
1
answer
90
views
How to add escape characters in URLRewrite
I would like to add the following rule in my urlrewrite.xml (Lucee server):
<from>^([a-zA-Z0-9\/\-\%\+:\[\]\{\}\|\;\<\>\?\,\*\!\@\#\$\ \(\)\^_`~]*)$</from>
<to type="...
1
vote
0
answers
76
views
URL redirection by checking parameter
I have URL like www.mysite.com/?cmd=login¶m=1
I would like to redirect to another link if ¶m=1 parameter is not present
<rule>
<condition type="parameter" name="...
1
vote
0
answers
78
views
How can I convert IIS url rewrite rules to Tuckey rewrite rules?
I am having great difficulty in trying to modify these rewrite rules to a version of URL rewrite that can work with Tuckey.
They currently work with IIS / ColdFusion but I need these to work with a ...
0
votes
0
answers
77
views
Redirection to a URL with hyphen doesn't work
I have a simple redirection rule
<rule>
<from>/ask</from>
<to>https://hlt.com/ask-wisely</to>
</rule>
Due to the hyphen being present, the rule doesn't ...
1
vote
1
answer
146
views
How to use environment variable in urlrewrite.xml of tomcat rewrite file
I have a urlrewrite.xml which I want to use to redirect an url
<rule>
<from>/http</from>
<to redirect="true">https://www.example.com</to>
...
0
votes
1
answer
151
views
UrlRewriteFilter Is Not Taking Effect in Tomcat
My web is hosted in Centos under Tomcat.
The web worked fine. (no web.xml in WEB-INF)
I wanted to make a permalink for jsp pages using urlrewritefilter-4.0.4.jar
But after upload, the address web.com/...
0
votes
0
answers
252
views
Filtering jsessionid from url
I am implementing session without cookies, but the problem is that if cookies are disabled by default browser send jsessionid in Urls to track session
http://localhost:8080/basepath/dashboard/admin;...
0
votes
0
answers
147
views
tuckey urlrewrite, query string, remove www
How could I add WWW to the beginning of host-name forcibly by getting specific query-string of {key=value} combination. I use condition and redirect to define rule but it doesn't work.
Consider the ...
0
votes
1
answer
73
views
Chrome could not render tuckey urlrewrite output webpage
We have recently upgraded one of our customers server's software including: Centos, Tomcat, JDK and MySQL. Now we find out that all pages that was returned from tuckey urlrewrite filter, could not be ...
0
votes
3
answers
246
views
Removing Hashtag using Java WebFilter
I have the following configuration in the urlrewrite.xml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN" "http://www.tuckey.org/...
0
votes
1
answer
154
views
Need help setting up <rule> in urlrewrite
I have a mysite.com website (SpringBoot 2.0) where I use the localization of mysite.com?lang=en or mysite.com?lang=uk
How can I configure in urlrewrite.xml org.tuckey.web.filters.urlrewrite....
0
votes
1
answer
189
views
explanation of tuckey rule "to"
I have this rule:
<rule>
<from>^/test/.*$</from>
<to last="true">-</to>
</rule>
Can someone explain what the dash (-) means in the "to" part?
2
votes
1
answer
2k
views
Redirect to a different host in Spring Boot (non-www to www URL)
I have configured my project with a self signed certificate and have configured to redirect insecure http to https. I also want to redirect a request to a host without a "www." prefix to a host that ...
0
votes
1
answer
59
views
What is the JDK version that was used to compile the Tuckey UrlRewriteFilter JAR?
What is the JDK version that was used to compile the Tuckey UrlRewriteFilter JAR ?
Tuckey UrlRewriteFilter Home page :
http://www.tuckey.org/urlrewrite/
JAR :
http://central.maven.org/maven2/org/...
0
votes
1
answer
799
views
URL Rewrite Missing X-Frame-Options in Header
I'm using Tomcat 8 and Tuckey urlrewrite to remove ".jsp" from my web page URLs. Its working fine but I noticed the X-Frame-Options in the response header are not present when urlrewrite redirects ...
0
votes
0
answers
234
views
Tuckey url rewrite with spring boot, angular 4 results in strange error?
I am trying to configure tuckey URL rewrite for spring boot + angular 4 app.
Routing on angular 4 looks like this
{
path: 'media-detail/:media-name', component: MediaDetailComponent
}
and in ...
1
vote
1
answer
583
views
Tuckey URLRewriteFilter alternative
I am looking to use the UrlRewriteFilter based on a recommendation. It was working fine, until I tried to pass the parameters from the "From" to the "to". I ended up getting "&" as the character ...
6
votes
3
answers
2k
views
Redirection from http to https - infinite loop
I am working on a Java web app hosted on a Tomcat server. I have to set up redirects from www to non-www and from http to https. I want the following three URLs:
http://example.com
http://www....
0
votes
1
answer
136
views
get the complete string in a line excluding the matching regex
For example, if a value matches "an email pattern", then remove the key also associated to it from the url.
If url is
https://stackoverflow.com/?key1=test&key2=test@gmail.com&key3=something&...
0
votes
1
answer
422
views
How can I redirect from one url to another using Tuckey URL rewriting without change url in browser?
I've two 2 urls e.g. www.1st-domain.com and www.2nd-domain.com I want to write a Tuckey URL Rewrite rule to redirect any request that goes to www.1st-domain.com to www.2nd-domain.com but url in ...
0
votes
0
answers
161
views
URLrewrite rule to replace hyphen with %20
I'm using tuckey.org rewrite urlrewrite filter and I would like to create rule for url with hypen.
like from /author/person-name to /topics/Author/Person Name
In above rule, hyphen must be replace ...
1
vote
1
answer
89
views
How to only include normal strings of text but not anything that contains a " .* "
How would i get only strings out of a piece of text and not the piece of text if it contains a .*
so for example:
foo would return foo
foo.test would return nothing
foo.blah would also return ...
1
vote
1
answer
901
views
Why URL rewriting is not working in Struts 2 [duplicate]
I have configured Tuckey URL Rewriting. I have included dependency in pom.xml:
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter&...
0
votes
1
answer
288
views
Tuckey's UrlRewriteFilter not able to filter root of site (for crawlers)?
Java and AngularJS on Google App Engine.
As to why, although I've been reassured that most crawlers can parse javascript sites, it's not fully parsing my angularjs site and therefore not indexing it ...
1
vote
1
answer
282
views
url rewrite to file without extension
this is my first question here.
I would like to know if there is a way to use tuckey urlrewrite to filter a request to a specific file without extension. I tried some rules to accomplish this but ...
1
vote
1
answer
268
views
URL Forwarding based on request parameters
I am using UrlRewriteFilter from http://www.tuckey.org/urlrewrite/. Mainly I am trying to get the following URL http://domain/application/?param=value to redirect to http://domain/application/?...
0
votes
1
answer
2k
views
Redirect context root with UrlRewriteFilter
I have web application which I want to deploy to weblogic and I added UrlRewriteFilter
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey....
0
votes
1
answer
165
views
URLRewriteFilter hide parameters
I have a url that looks like this:
http://example.com/example/
When I click on a link in the website I want thre browser to show http://example.com/example/link1 but my rule is showing http://...
1
vote
1
answer
444
views
Java URLrewrite Filter - Passing parameter
I need a rule for my urlrewrite.xml
I need to redirect this:
www.mysite.com/test-news.php?id=23
to
www.mysite.com/news?id=23
This is my actual filter:
<rule match-type="regex">
<from&...
0
votes
1
answer
1k
views
'redirect' and 'proxy' vs 'forward' and 'passthrough' in Tuckey URLRewrite
Note that, in my attempt to display code examples, I will redact/edit out any references to the company for whom I work in an effort to obscure their identity, not so much to hide the fact that I'm ...
2
votes
0
answers
167
views
Rewrite URL for a page using tuckey urlrewite
I have not used tuckey urlrewrite previously so I am not sure if I am going in the right direction.
I want to save the query params and just add # before the \page.
I need to redirect the page from:
...
0
votes
1
answer
184
views
tuckey urlrewrite facebook crawler user agent detect
I have an angular app, I trying to include facebook og with every links of my app.
Since angular render's pages on client side I have used technique as suggested in this blog- https://www....
2
votes
1
answer
1k
views
UrlRewriteFilter: www and https redirect
I am using Tuckey UrlRewriteFilter to force users to go to the 'www' and 'https' version of my web. I mean next 3 URLs must redirect to https://www.myweb.com
http://www.myweb.com
http://myweb.com
...
0
votes
0
answers
482
views
React router in subpath is not rendering on link click
I have a react application in a subpath (ie: domain.com/login) and when I want to go to someone route I click the link but the Route component dont shows nothing, it works when I write in the browser ...
4
votes
0
answers
544
views
How can I set up an URL rewrite filter BEFORE authentication in Spring 5?
We have a working Spring 4 multi-tenant web application under development, which has the Tuckey UrlRewriter filter in the beginning of the filter chain (before authentication, session management, etc)....
0
votes
1
answer
581
views
How to make urlrewrite (tuckey) ignore css and js requests and stop processing other rules?
I have a urlrewrite.xml file with several rules in it. I'd like to put a rule at the very beginning to match any/all css or js requests and just pass them through AND STOP COMPARING TO ANY OTHER ...
3
votes
1
answer
242
views
Regular Expression: convert a list of name and value pairs to query string
I am working on an URL rewrite with Lucee/Tomcat and the Tuckey plugin. To simplify the problem: I need a regular expression that converts a list delimited by colons, to a regular url query string ...
0
votes
1
answer
902
views
Setting origin or referer value which from request to the response-header using urlrewritefilter
How to set origin value or referer value in a response-header using tuckey url rewrite filter xml file.
Accessing %{origin} directly in the set tag is not working but not working in condition tag.
...
2
votes
1
answer
459
views
Translating .htaccess to Tuckey UrlRewriteFilter
I'm building a project using Spring Boot and Angular 1.5.X and I am struggling to handle full page refreshes of Angular routes - typical "404 because the path I made doesn't actually exist" problem. I'...
2
votes
1
answer
354
views
URLRewrite - add .do to incoming requests -but Filter execution threw an exception
I just installed the URL-rewriting filter from http://tuckey.org/.
I have added a rule to add .do for requests coming on a specific path /beta.
<rule>
<from>(.*)/beta/(.*)\?(.*)...
1
vote
0
answers
139
views
Getting StackOverflowError when using URLRewriteFilter
i am trying to use UrlRewriteFilter but i am getting error
Screenshot of error
maven:
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</...
1
vote
1
answer
213
views
How to do 307 redirect with tuckey UrlRewriteFilter
I have the following rule...
<rule>
<condition type="scheme" operator="equal">^http$</condition>
<from>/(.*)</from>
<to type="temporary-redirect" last="...
1
vote
1
answer
1k
views
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: unable to find urlrewrite conf file at urlrewrite.xml
I'm trying to use Tuckey as urlRewrite in my spring boot project but i get error below registering Tuckey filter:
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: unable to find urlrewrite ...
4
votes
0
answers
673
views
urlrewrite last rule is not stopping
I have following url rewrite configuration:
web.xml:
<!--URL_REWRITE FILTER-->
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web....
0
votes
1
answer
121
views
check if url has '/?' thru tuckey urlrewrite
I need to check thru URL rewrite if the URL has question mark after 'search-product-list/'. I'm using tuckey. Here's the current rule:
<rule>
<from>^/n/search-product-list/...
0
votes
1
answer
176
views
How to write regex for redirection
I have some url's
/a/b?key1=value&key2=value
/a/b/?key1=value&key2=value
I want to redirect them to the url
/a/b/c/?key1=value&key2=value
What i have done till now is
i am able to ...