Login  Register

Re: Users - Configuration of Url

Posted by G Venkata Phanindra on Apr 28, 2006; 11:19am
URL: http://ofbiz.116.s1.nabble.com/Users-Configuration-of-Url-tp138751p138756.html

Hi thanks for your reply.....
       But i am unable to implement the sugestion from Mr.David.
    I changed the following lines of code in web.xml
       <servlet-mapping>
        <servlet-name>ControlServlet</servlet-name>
        <url-pattern>/control/*</url-pattern>
    </servlet-mapping>     
to
    <servlet-mapping>
        <servlet-name>ControlServlet</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>     
and also i changed in the index.jsp
 <%response.sendRedirect("control/main");%>
 to
<%response.sendRedirect("/main");%>
<%response.sendRedirect("/");%>
etc.......
I am getting following error
 404 at times
 and some times Unable to load the requested url and its going to infinate loop and the error/error.jsp is comming up......

Phani



Andrew Sykes <[hidden email]> wrote:
David,

Surely that's still going to leave some name in the URL.

The desired effect was mydomain.com/main

If you rename the control servlet aren't you always going to have
something of the form...
mydomain.com//main


On Fri, 2006-04-28 at 10:42 +0100, David E Jones wrote:

> That would be one way... But you can also change the mount point of the ControlServlet in the web.xml file and all dynamically generated URLs (ie using the ofbizUrl tag) will pick it up automatically. Quite a few OFBiz-based ecommerce sites do this.
>
> -David
>
>
> Jacques Le Roux wrote:
> > The best way to do this is to put Apache in front using mod_jk. Search
> > in Wiki please.
> >
> > Jacques
> >
> > ----- Original Message -----
> > *From:* G Venkata Phanindra
> > *To:* developers Forums ; ofbiz
> >
> > *Sent:* Friday, April 28, 2006 10:40 AM
> > *Subject:* [OFBiz] Users - Configuration of Url
> >
> > Hi
> > I want to create a Webstore (Website) and i want the url
> > patterns to be as Follows
> > 1 www.xyz.com but i get by
> > default with ofbiz as www.xyz.com/control/main
> > i want to get rid of this.
> > 2 I want to customize few sections of urls Like
> > for information link i want them to be
> > www.xyz.com/info/abc
> > i am getting by default in ofbiz as
> > www.xyz.com/control/info/abc........
> >
> > Thanks and Regards
> > G Venkata Phanindra.
> >
> >
> >
> > With Regards,
> >
> > G Venkata Phanindra.
> > Mobile :9849852989.
> >
> > ------------------------------------------------------------------------
> > Jiyo cricket on Yahoo! India cricket
> >
> > Yahoo! Messenger Mobile
> >
> > Stay in touch with your buddies all the time.
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/users
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
--
Kind Regards
Andrew Sykes
Sykes Development Ltd
http://www.sykesdevelopment.com


_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users



With Regards,

G Venkata Phanindra.
Mobile :9849852989.


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users