Hey Dushan,

2010/3/13 Dushan Savich <[email protected]>:
> Hi all,
>
> I want my witty web app to open a "search" page when i type
> search.mydomain.com  ,  and to  open  a main page, when I type
> www.mydomain.com

You can obtain the server name from WEnvironment::hostName(), and
react accordingly (probably from your WApplication constructor).

> Also , we all know that  search engines like when adresses  are in the
> form     http://www.myforums.com/how_can_i_solve_this_path_problem/   .
> Can we return the proper content, when user enters URL like that?

Yes. See the internal path API, to generate search-engine friendly URLs.

Regards,
koen

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to