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:
http://www.nab
-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 h
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_.html" .
Now, i need to change this link path to absolute path, right?
Thanks for your help.
--
View this message in
-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
> 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
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
-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.htm
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
a
-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-writ
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
-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
> Aft
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
/item_(.*).html
/getItemPage?itemName=$1
If there is a url like /item_xxx.html, the url rewriter filter will redirect
to /getItemPage.action?itemNa
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 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", http
On Fri, Sep 11, 2009 at 4:01 AM, Pid 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 passing the reques
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 loo
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 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.
Because
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 t
om]
>> 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 expect
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 S
> 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 - /rewrit
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.
The rule means that requests to /test/status/ will be redirected
to /rewrite-status
the url wi
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:
UrlRewriteFilter
org.tuckey.w
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