Wednesday, October 27, 2010

Re: SEO Question.

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

for google crawler it will become

http://109.123.108.234/war/Meeonholiday.html?_escaped_fragment=showHomePage

a url like this

http://109.123.108.234/war/Meeonholiday.html#!showProdDetails?pid=13&cid=20

for the crawler becomes,
http://109.123.108.234/war/Meeonholiday.html?_escaped_fragment=showProdDetails?pid=13&cid=20 (i 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 <farmazone@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...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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment