That seems a fairly good approach to take.

I think that will work for me. Not perfect, but it will do.
My site probably needs just two php scripts..one to display a set of
search results, and one to display a specific result. (+the homepage
which is already a purely php-thing, Gwt parsers its html on loading).
So it shouldn't take too much adjustment.

I'll try to make the adjustments myself over the next few days. I'll
let you know how I get on :)


2009/6/29 Ian Bambury <[email protected]>:
> What you need is a non-js site structure which matches your gwt structure
> except for the ? and #
> Without the #stuff, the search engines will go to the index page and just
> recursively find all your non-js structure.
> The search engines display site.com/?thing=220 etc and that will be the link
> in the serps. Non-js users will get that non-js page.
> But...js users get to execute a little script which replaces the ? with a #
> and redirects them to the gwt site but with the right bookmark to see the
> right gwt page.
> Not absolutely ideal because visitors from the serps get an initial (albeit
> invisible) redirect, and any sites that cut and paste from the address bar
> will point search engines to the index page, and you need to structure your
> site in the right way to make the non-js site trivial (mine is just 3 PHP
> pages).
> But it's better than not doing it IMO.
> Contact me off-list if you want to see if my way of doing it could work for
> you
> Cheers,
> Ian
>
> http://examples.roughian.com
>
>
> 2009/6/28 Thomas Wrobel <[email protected]>
>>
>> -sigh-
>> Well, at least thats a clear cut answer ;)
>> Pitty.
>> Guess I'll have to use a "click here to get url" button and try to
>> restructure any outgoing links pointing back to use a ? query for the
>> search engines sake.
>>
>>
>> 2009/6/29 Ian Bambury <[email protected]>:
>> > You can't do it. The server doesn't get sent the stuff from the #
>> > onwards.
>> > Ian
>> >
>> > http://examples.roughian.com
>> >
>> >
>> > 2009/6/28 darkflame <[email protected]>
>> >>
>> >> Ive been building a dynamic website, with the content displayed chosen
>> >> by the current contents of the history/bookmark token at the end of
>> >> the url.
>> >> eg.
>> >> /main.html#DisplayReview=220
>> >>
>> >> This works great, as the whole site doesn't have to be refreshed,
>> >> hugely reducing bandwidth for me and speeding up the site for the
>> >> users. This is, of course,whats recommended to do.
>> >>
>> >> My site is also, so far, completely bookmarkable this way. URLs link
>> >> directly to the current state of the app....as it should. My users
>> >> should be able to swap links just like any other site.
>> >>
>> >> Problem is, I want the site to happly work when javascript is disabled
>> >> as well. If nothing else, this is needed for search-engines to index
>> >> it correctly. So I needed a way for php to display the same content
>> >> from the same links....
>> >> ...only to find, to my horror, php cant seem to access anything past
>> >> the "#"...its as good as invisible!
>> >>
>> >> HELP!!!
>> >>
>> >> Even hiding it in a query string dosnt work
>> >> ( /main?blah#DisplayReview=220.....only the blah is detected).
>> >>
>> >> Now, I cant change my #'s links to ?'s...as dynamic query string
>> >> changes make the page reload, and it would completely break my history-
>> >> support.
>> >>
>> >> So I'm left a bit puzzled as to what I can do.
>> >>
>> >> How can I keep the sites states bookmarkable, but also have those same
>> >> URLs readable by php?
>> >> I really dont want to resort to an extra "click to get url" unless I
>> >> absolutely have too.  (and besides, wouldnt that also mess up search
>> >> engine indexing? )
>> >>
>> >> Ive got a vague idea that .htaccess voodoo might help me out.
>> >>
>> >> Maybe htaccess can itself see the # data when the user requests the
>> >> url, and dynamically change it to a ?. (?)
>> >>
>> >> I'm not hot with htaccess at all, so it might not be able to do
>> >> either, then I really am stuck.
>> >>
>> >> I know htaccess stuff isnt strictly ontopic, but I'm asking here
>> >> because it seems like a common problem people building gwt sites would
>> >> have.
>> >> Unfortunately googleing this stuff is useless....(# and ? arnt exactly
>> >> mySQL-based search engine friendly querys...google dosnt seem to
>> >> support escaping your searchs).
>> >>
>> >> ..so I hope someone here can help.
>> >>
>> >>
>> >> I also hope I made myself clear.
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to