bntcode Posted May 19, 2011 Share Posted May 19, 2011 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!! Link to comment https://forums.phpfreaks.com/topic/236822-flash-map-works-with-dynamic-url-but-not-with-htacess-friendly-url/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.