# Flash, Htaccess variable problem

**URL:** <https://forum.kirupa.com/t/flash-htaccess-variable-problem/322351>\
**Category:** flash\
**Created:** [May 18, 2011, 6:56pm UTC](https://forum.kirupa.com/t/flash-htaccess-variable-problem/322351 "2011-05-18T18:56:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BNT](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@BNT](https://forum.kirupa.com/u/BNT)\
**Post date:** [May 18, 2011, 6:56pm UTC](https://forum.kirupa.com/t/flash-htaccess-variable-problem/322351/1 "2011-05-18T18:56:28Z")

</div>

Hi,  
I’ve got a flash based heat map going on my website. Here’s is the url:

[http://www.babynametrain.com/name-map.php?name\_var=noah&gender=boy](http://www.babynametrain.com/name-map.php?name_var=noah&gender=boy)

This map is working perfectly with the url above. However, I’m trying to get the page to work with a friendly url, like tihs:

[http://www.babynametrain.com/heatmap/boy/noah/](http://www.babynametrain.com/heatmap/boy/noah/)

To do this, I put a line into my htaccess file that looks like this:  
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](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](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](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](http://www.macromedia.com/go/getflashplayer)” wmode=“transparent” /\>  
\</object\>

I’m sure I’m just missing something simple and obvious, but I’m very new to the flash world and I’m not seeing the problem.

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!!
