Thanks ROB.
This worked perfect.
I dont know what i was thinking!!

Thanks again for the pointer.

Cheers,
Subhro.

On Thu, Oct 28, 2010 at 1:31 PM, RPB <robbol...@gmail.com> wrote:

> Hi Subhro,
>
> You can just change Meonholiday.html to a PHP file. Then you can do as
> I describe above, i.e.
>
> if(isset($_GET['_escaped_fragment_'])) {
>   echo "Static Version of my page" ;
> }
> else
> {
>     echo "MeonHoliday HTML"; //echo out the contents of your html file
> here
> }
>
> So when the crawler goes to your page you echo static data, otherwise
> your website loads as normal.
>
> -Rob
>
> On Oct 27, 5:46 pm, Subhrajyoti Moitra <subhrajyo...@gmail.com> wrote:
> > Thanks Rob and farmazone for the response.
> > In the app, there is no php script first being hit.. let me please
> explain..
> >
> > A url like this..
> >
> > http://109.123.108.234/war/Meeonholiday.html#!showHomePage<http://109.123.108.234/war/Meeonholiday.html#%21showHomePage>
> >
> > for google crawler it will become
> >
> > http://109.123.108.234/war/Meeonholiday.html?_escaped_fragment=showHo...
> >
> > a url like this
> >
> > http://109.123.108.234/war/Meeonholiday.html#!showProdDetails?pid=13&;.<http://109.123.108.234/war/Meeonholiday.html#%21showProdDetails?pid=13&;.>
> ..
> >
> > for the crawler becomes,
> http://109.123.108.234/war/Meeonholiday.html?_escaped_fragment=showPr...
> > think param part gets url encoded)
> >
> > The first entity to come to know that these urls being accessed is apache
> > http. The 2nd entity is the html file itself (no php script) and
> > consequently, the app starts up (onMOduleLoad etc...). After the app load
> > up, i then access the PHP backend (RequestBuilder..) for data. The
> backend
> > only gives data. no markup. JSON data. thats all.
> > So its not like i am hitting a PHP script first on the server, which will
> > detect the _escaped_fragment in the request and take steps.
> >
> > Do i need to do something at the Apache httpd conf to "reroute" the
> > _escape_fragment urls to a html snapshot generator?
> > OR GWT onModuleLoad can help someway?
> >
> > Please help.
> >
> > Thanks,
> > Subhro.
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Oct 27, 2010 at 7:04 PM, farmazone <farmaz...@gmail.com> wrote:
> > > here are examples of something similar
> > >http://www.asual.com/jquery/address/
> >
> > > On Oct 27, 11:43 am, RPB <robbol...@gmail.com> wrote:
> > > > Hi Subhro,
> >
> > > > You need to create a PHP page which will serve static information if
> > > > it detects "_escaped_fragment_=" or just the normal GWT page
> > > > otherwise. Something like this:
> > > > if(isset($_GET['_escaped_fragment_'])) {
> > > >    echo "Static Version of my page"}
> >
> > > > else
> > > > {
> > > >     echo "<script type=\"text/javascript\" language=\"javascript\"
> src=
> > > > \"../gwtProj/getProj.nocache.js\"></script>";
> > > >     //or whatever you have in your current index file
> >
> > > > }
> >
> > > > Here are some other threads which may be useful:
> > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa..
> ..
> > > ..
> >
> > > > Good luck,
> > > > Rob
> >
> > > > On Oct 26, 5:10 pm, Subhrajyoti Moitra <subhrajyo...@gmail.com>
> wrote:
> >
> > > > > Hello,
> > > > > I have to build an application which has a PHP backend and GWT
> client.
> > > > > How do we make it crawlable? The urls follows Google, ajax url
> format
> > > of
> > > > > "#!".
> >
> > > > > How do we take HTMLsnapshots using PHP or GWT? I know HTMLUnit does
> the
> > > job,
> > > > > but the backend is PHP and not java.
> > > > > Please help.
> >
> > > > > Thanks,
> > > > > Subhro.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com><google-web-toolkit%2Bunsubs
> cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to