View Full Version : Wildcards in url into flash
cdonke
07-31-2007, 12:40 AM
Hey there...
i was wondering if is possible to do this:
open the url: http://www.example.com/contact
where "contact" is a wildcard.
The index file will read the contact as a wildcard and call the an anchor named Contact inside the flash...
Is is possible???
sneakyimp
07-31-2007, 02:53 AM
i'm not sure what you mean 'read as a wildcard' but it sounds like you want whatever comes after 'example.com/' to be entered into a flash movie. If you are using apache, this sounds like a job for mod_rewite (http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html)
it's an apache module which will receive a request for this:
http://example.com/contact
and translate that into a request for this (or any other url you might want):
http://example.com/my_flash_page.php?param=contact
the trick would then be to configure my_flash_page.php to take the value of param and feed it to your flash movie.
cdonke
07-31-2007, 04:02 AM
tks... that's it what i was talking about...
although, i'm runninmg a windows 2003 servr...
and figured out this code:
[ISAPI_Rewrite]
RewriteCond Host: (.*)
RewriteRule /([0-9A-C]+) /\?anchor=$1 [I,L]
tks...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.