Tuckeys urlrewriter adding extra slash

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Tuckeys urlrewriter adding extra slash

lns_lns
Hi,

I'm trying to rewrite the urls of ofbiz with tuckeys urlrewriter, but it
adds an extra slash in front of the url.

I got ofbiz 9.04 behind apache2.2.9 using a proxypass from /shop to
ajp://localhost:8009.

If I open the url "server.se/shop/main" it should appear to ofbiz as if
"/control/main" was called (the application is mounted on /).

But ofbiz gets the request url "//control/main", causing a null pointer
exception.

This is my basic rule for tuckeys, can someone please help me with this?

-------------------------

<rule>

            <from>^/(.+)$</from>

            <to type="forward">/control$1</to>

 </rule>

-------------------------

Thanks!

 

Regards

Lukas

Reply | Threaded
Open this post in threaded view
|

Re: Tuckeys urlrewriter adding extra slash

lns_lns
Hi,

I'm still having no success experience with this problem...
Can someone help me, maybe with another url rewriting engine?
Basically i want to add the "/control/" by forwarding.
Additionally I'd like to replace the "~param=" manually, statically...

I would really appreciate some help here!
I saw some people got it to work, but didn't say how, plus I don't know if they were using mod ajp...
Anyway, thanks in advance!
Regards
Lukas
lns_lns wrote
Hi,

I'm trying to rewrite the urls of ofbiz with tuckeys urlrewriter, but it
adds an extra slash in front of the url.

I got ofbiz 9.04 behind apache2.2.9 using a proxypass from /shop to
ajp://localhost:8009.

If I open the url "server.se/shop/main" it should appear to ofbiz as if
"/control/main" was called (the application is mounted on /).

But ofbiz gets the request url "//control/main", causing a null pointer
exception.

This is my basic rule for tuckeys, can someone please help me with this?

-------------------------

<rule>

            <from>^/(.+)$</from>

            <to type="forward">/control$1</to>

 </rule>

-------------------------

Thanks!

 

Regards

Lukas