Questions tagged [tuckey-urlrewrite-filter]
An rule-based URLRewrite filter for Java Servlet technologies, similar to apache's mod_rewrite.
251
questions
1
vote
0
answers
76
views
Tomcat Rewrite Outbound Rule
I am working on a web application that uses Tuckey's UrlRewriteFilter for url rewriting. We are looking to migrate to jakarta and intend to also move away from the UrlRewriteFilter and use Tomcat's ...
0
votes
1
answer
94
views
Rewrite to different context using tuckey urlRewrite
We have a web application which runs on root(/) context and we have the content provider which runs on different context (/BK/). We need to map the request from the content provide https://provider....
2
votes
4
answers
556
views
when the tuckey urlrewrite will support jakarta and alternatives of tuckey urlrewrite
Currently tuckey urlrewrite internally uses javax so im facing type mismatch error between jakarta and javax as my project uses jakarta to support tomcat 10.
So i wanted to know when the tuckey ...
0
votes
0
answers
59
views
Source Urls having '#' in them (anchor links) are not redirecting
I currently have a redirect filter working on an old site with 100+ html pages (static site). However, the remaining API docs (200+ pages) which all have a "#" in them are not redirecting. ...
0
votes
0
answers
53
views
Tuckey library for specific url pattern
I'm facing a problem.my company's website like http://localhost:8080/Product/Pages/Home.jsp
but when tried like http://localhost:8080/Product/Pa/ges/Home.jsp website tries to direct our 404 error ...
0
votes
1
answer
122
views
Rewrite url in Spring Boot AWS container
I have a spring boot app that is likely to be Software as a Medical Device, and has a section that is protected with oauth2, and a demo section. I'd like to have these at separate hostnames, e.g. ...
1
vote
1
answer
125
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
80
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
1
answer
187
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
120
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
128
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
317
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 ...
2
votes
1
answer
271
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
307
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
378
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
215
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
80
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
324
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
222
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
219
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
3k
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
64
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
933
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
280
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 ...
2
votes
1
answer
817
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
149
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&[email protected]&key3=something&...
0
votes
1
answer
502
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
175
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
90
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 ...
2
votes
1
answer
1k
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
338
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
355
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
319
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
177
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
533
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
178
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
196
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
2k
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
535
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
661
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
637
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
315
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
1k
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
510
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
397
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
145
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
233
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="...