to Christopher Schultz-2:
I try to rewrite some relative path to absolute path for CSS and image.
And it work!!!
So i think i find the solution for this.
The / char will not let me get error, just check the relative path.
Thanks for your help!
--
View this message in context:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
William,
On 9/17/2009 10:30 PM, WILLIAMer wrote:
If you always start your URLs with a '/', then you shouldn't have a problem.
Could you explain this Sentence to me?
Uh... you should make sure all your URLs are absolute, not relative. IF
you have
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
William,
On 9/16/2009 10:04 PM, WILLIAMer wrote:
Let me say sorry for i didnt description the error.
The error like the path is mapping incorrectly.
So, what error message do you get?
So the image or css are not display because of the path not
Hi, Christopher Schultz-2
If you always start your URLs with a '/', then you shouldn't have a problem.
Could you explain this Sentence to me?
In my jsp, i write a href=./item_s:property value=item /.html .
Now, i need to change this link path to absolute path, right?
Thanks for your help.
--
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
William,
On 9/15/2009 9:45 PM, WILLIAMer wrote:
There is no error with url rewrite.
For item pd1234,
The url would be http://myDomain/item_pd1234.html and its fine.
Ok.
For item pd12/34
The url would be http://myDomain/item_pd12/34.html and
Hi, Christopher Schultz-2
Let me say sorry for i didnt description the error.
The error like the path is mapping incorrectly.
So the image or css are not display because of the path not find.
A part of my application structure like under
/tomcat/webapps/myApp/images
From: WILLIAMer [mailto:william.tz...@echannelopen.com.tw]
Subject: Re: tomcat url rewrite
The error like the path is mapping incorrectly.
What do you have in WEB-INF/web.xml for your webapp?
I set my application to be ROOT.
How?
Why i say http://myDomain/item_pd12/34.html let me
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
William,
On 9/14/2009 9:43 PM, WILLIAMer wrote:
I got the problem if the item name(from database) have / char,
the full url path http://myDomain//item_1/23.html would be error.
Where does the error occur? Does the URL re-writer fail to re-write
Hi, Christopher Schultz-2
There is no error with url rewrite.
For item pd1234,
The url would be http://myDomain/item_pd1234.html and its fine.
For item pd12/34
The url would be http://myDomain/item_pd12/34.html and got error.
Because tomcat seems there is a directory named item_pd12under my
On 14/09/2009 03:05, WILLIAMer wrote:
I think look up the url in database is not a Immediately way to me.
Because most of item not have the / char in name.
My original url would like http://myDomain/getItemPage?itemName=xxx
After the url rewrite rule, url become http://myDomain/item_xxx.html
I use http://tuckey.org/urlrewrite/ url rewriter filter for doing url
rewrite.
And i write the rule in urlrewrite.xml.
My rule like under
rule
from/item_(.*).html/from
to type=forward/getItemPage?itemName=$1/to
/rule
If there is a url like /item_xxx.html, the url rewriter filter will
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
William,
On 9/13/2009 10:05 PM, WILLIAMer wrote:
I think look up the url in database is not a Immediately way to me.
Because most of item not have the / char in name.
My original url would like http://myDomain/getItemPage?itemName=xxx
After the
To Christopher Schultz-2,
See my previous post, i have used urlrewrite( http://tuckey.org/urlrewrite/
http://tuckey.org/urlrewrite/ )
I already write the rule in rewrite.xml for /item_123.html to
/getItemPage?itemname=123
I got the problem if the item name(from database) have / char,
the full
I think look up the url in database is not a Immediately way to me.
Because most of item not have the / char in name.
My original url would like http://myDomain/getItemPage?itemName=xxx
After the url rewrite rule, url become http://myDomain/item_xxx.html
If the item name like abc/def,
WILLIAMer wrote:
I get a problem with the URL.
My application has url rewrite for SEO.
I use this format http://mydomain/item.html for display.
There is an error that if the item name like LF/123,
then the url become http://mydomain/LF/123.html.
Because of the name include / character.
I got
On 11/09/2009 08:07, André Warnier wrote:
WILLIAMer wrote:
I get a problem with the URL.
My application has url rewrite for SEO.
I use this format http://mydomain/item.html for display.
There is an error that if the item name like LF/123,
then the url become http://mydomain/LF/123.html.
Thanks for replies.
To awarnier:
Change the item name will lost the SEO for this item.
To Pid-6:
It is dynamic page and item data are from database.
I use url rewrite for looking like static page.
So the tomcat is right.
I must think another way.
Thanks all.
--
View this message in context:
On 11/09/2009 11:18, WILLIAMer wrote:
Thanks for replies.
To awarnier:
Change the item name will lost the SEO for this item.
To Pid-6:
It is dynamic page and item data are from database.
I use url rewrite for looking like static page.
Why not just make the URLs in such a way that you can
On Fri, Sep 11, 2009 at 4:01 AM, Pid p...@pidster.com wrote:
Why not just make the URLs in such a way that you can look them up in the
database? A servlet Filter could perform the same task in one go that your
rewrite db lookup is doing.
Exactly -- your URL is only a problem if you're
THERE'S NO context.xml.
Also, since my app is a third party (not properly Tomcat or Apache's)
server.xml does not contain any information ab them.
Server.xml was uploaded.
Thanks for the reply.
Caldarale, Charles R wrote:
From: Rodro [mailto:rodrigo_alle...@ibi.com]
Subject: Re: Tomcat URL
Dear awarnier.
Ok, Now I found such WEB-INF directory (in my app it's
C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the installation
and configuration steps.
1) copied urlrewrite.xml into such WEB-INF
2) edited web.xml with the below lines:
filter
Rodrigo,
What is the error message in English?
And i think this one is just an example config file coming with urlrewriter.
If you do not need it, you can just delete it.
rule
note
The rule means that requests to /test/status/ will be redirected
to /rewrite-status
From: Rodro [mailto:rodrigo_alle...@ibi.com]
Subject: Re: Tomcat URL Rewrite. Help with configuration.
Though redirection didn't work, but furthermore when I try to see
http://localhost:8080/rewrite-status, I get the below error:
Estado HTTP 404 - /rewrite-status
That would be expected
According to the documentation, such context should give you a wellcome
page to the urlrewriting service, but yes I don't need it indeed.
The error message in English is:
HTTP Status 404 - /rewrite-status
type
Rodro wrote:
Dear Tomcat Users.
I'm trying to do a URL masking on Tomcat 5.5.25.
What I specifically want to do is:
I execute (call) an app with the following URL:
http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
Now, I need to mask the URL to get the same result calling the app as:
25 matches
Mail list logo