Jump to content

Flash map works with dynamic url, but not with htacess friendly url


Recommended Posts

Hi,

I've got a flash based heat map going on my website. The dynamic page works perfectly:  http://www.babynametrain.com/name-map.php?name_var=noah&gender=boy

 

So that works.  Now, I wanted to make the url friendly with htaccess, like this:

http://www.babynametrain.com/heatmap/boy/noah/

 

So, I put a line in my htaccess file:

RewriteRule heatmap/boy/([^/\.]+)/?$ name-map.php?name_var=$1&gender=boy

 

However, the friendly URL doesn't load the map.

 

Here is the code on the name-map.php page, related to the flash:

 

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=10,0,0,0" width="550" height="340">

<param name="allowScriptAccess" value="sameDomain" />

<param name="allowFullScreen" value="false" />

<param name="movie" value="http://www.babynametrain.com/usmap.swf?xmlPath=map<?php echo $gender; ?>.php?name_var=<?php echo $HTTP_GET_VARS["name_var"]; ?>" /><param

name="quality" value="high" />

<embed src="http://www.babynametrain.com/usmap.swf?xmlPath=map<?php echo $gender; ?>.php?name_var=<?php echo $HTTP_GET_VARS["name_var"];?>" quality="high" width="550"

height="340" allowScriptAccess="sameDomain" allowFullScreen="false"

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />

</object>

 

 

I'm sure I'm just missing something simple and obvious, but I'm not seeing the problem.

 

FYI - I did make the references to the usmap.swf file from relative to absolute thinking this would fix things, but it hasn't.

 

Thanks in advance!!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.