On Sat, Mar 6, 2010 at 10:19 AM, MrMastermindNL
<[email protected]> wrote:
>
> Hi,
>
> I just finished my Zend Framework CMS for a client and the CMS will feed the
> front end Flash application through Zend AMF. This is all working fine. Now
> my client wants shadow HTML for SEO. The Flash front end uses SWF address
> for deeplinking to parts within the Flash application using the browser url.
> It uses the base url to the index file and then a hash (#) and behind that
> all parameters separated by slashes. So to get to a photo with id 32 in
> category dogs you would have a url like www.website.com/#/photos/dogs/32 or
> something like that.
>
> My question is now, can I setup my default controllers  and routing in such
> a way that when browsing the site in HTML you can route to the photos
> controller show a view with photo 32 of the dogs category, using the hash
> method swf address uses? This way google can browse through the site as well
> as visitors that do not use Flash?
>
> Did anyone already do something like this? And how do I set this up?
>
> Thanks,
> Marco

I don't believe the web server will ever see the hash symbol or
anything that comes after it. Generally, web browsers strip that part
out of the URL when sending the request. For instance, a typical
request for the URL you gave as an example above would begin with
this:

GET / HTTP/1.1
Host: www.website.com



The browser then looks for a named anchor within the document response
that matches the hash (again, in your case, an anchor with a
name="/photos/dogs/32"). I would imagine that the flash movie is
removing the hash character segment from the URL when it sends the
request to the web server, so that it is actually just requesting
www.website.com/photos/dogs/32.

Andrew

Reply via email to