• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

URL rewriting looses swf

Guest
Jul 21, 2011 Jul 21, 2011

Copy link to clipboard

Copied

I use FlashBuilder to create a Flex/PHP project, and it seems to work like that (tell me if I'm wrong):

=> Flex project : a .swf and .html are generated

=> PHP project : a .php is generated and copy link to .swf and .html

I open my browser on http://localhost:8888/myPHPProject/public/bin-debug/myFlexProject.php

I see the application, evrything is fine.

But I don't want to use this URL, I would like to have http://localhost:8888/myFlexProject

So I try to use URL rewriting (never used it before) ans set a .htaccess with this rule :

RewriteRule ^myFlexProject$ /myPHPProject/public/bin-debug/myFlexProject.php

Then my browser just shows me a blank page. Code source shows the code of myFlexProject.php so redirection seems ok, but it's like it can't find myFlexProject.swf.

What do I have to change in myFlexProject.php ?

Or do you know another method to have a nice url ?

TOPICS
PHP

Views

731

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 24, 2011 Aug 24, 2011

Copy link to clipboard

Copied

LATEST

rename your default application by index.html, or default, or whatever your server accept as homepage by default

and then in flash builder goto  projet -> properties - >Flex server  then change the output folder in your case( by default ) "bin-debug" to the folder where "http://localhost:8888/myFlexProject" is pointing , and that's all ( i think/hope)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines