Hello Glen,
The suggestion given is not my case, as I want /blog to remain in the
url rather than want to remove /test from the url. I have implemented
tukey corrected as I looked around that the url for backend of roller is
correctly rewriting properly as backend files are mainly in jsp, but
problem is in case of url that generates in velocity.
Is there any difference between the jsp and velocity, how they encode
the urls.
Thanks
Gaurav
On Saturday 23 November 2013 06:36 PM, Glen Mazza wrote:
Hmm, never heard of Tuckey ( http://tuckey.org/urlrewrite/), but I
don't think you need it here. It looks like you just need to make
/blog/test the default blog for your Roller instance, then
www.yyy.com/blog/ will automatically point to www.yyy.com/blog/test.
The Roller server administration page allows you to choose which blog
you want to have as your default blog.
If you have three blogs /blog/test1, /blog/test2, /blog/test3 that
will give them URLs of /blog (as well as /blog/test1), /blog/test2,
and /blog/test3. Assuming you want to take the next step and simplify
to / (or /test1), /test2, and /test3, that can be done by making
Roller your app server's default webapp. See point #6, subpoint #6
here: http://www.jroller.com/gmazza/entry/apache_roller_on_openshift
for information on how to do this with Tomcat, or your servlet
container's instructions if you're using another app server.
HTH,
Glen
On 11/23/2013 02:18 AM, Gaurav wrote:
Hello,
I am trying to rewrite the url using tukey. Actually the url which
generates from the roller are like [1] but I want that page to appear
on this url [2].
Also similarly all other url like [3] to [4].
I have already successfully rewrited the url in httpd in virtualhosts
file using url rewrite urls and for return url used proxyhtmlurlmap.
But I want this to be done within the application using tukey
urlrewite filter. I am unable to apply the same in tukey, as for
outbound-rule in tukey the url should be encodeUrl (response.encodeURL).
Can anyone please help me in this tukey url-rewite ?
[1] - www.yyy.com/blog/test/
[2] - www.yyy.com/blog/
[3] - www.yyy.com/blog/test/entry/blog_launched
[4] - www.yyy.com/blog/entry/blog_launched
--
Regards,
*Gaurav Saini*
/Developer, Digital Marketing and Pursuing B.Tech/
/Viithiisys Technologies/
/Email: gauravsain...@gmail.com, gaurav.sa...@viithiisys.com/
/Mobile: +91-9915346686/