Forums / Developer / How to bypass ezpublish engine??

How to bypass ezpublish engine??

Author Message

Jade Tremblay

Thursday 10 March 2005 9:42:54 am

Hello everybody,

Here's my problem. I've included a flash movie (.swf) in my site's header. This flash movie download a config file from the host server (using a flash function called: "loadVariableNum()"). To determines what is the URL to get the config file, the flash movie use the base URL of the current page and append the file's name.
Ex:
config file name: fyhj.txt
URL => http://mysite.com/index.php/mysitename1
URL that appear in apache access_log once the movie try to get the config file:
URL => http://mysite.com/index.php/mysitename1/fyhj.txt

Obviously, this URL doesn't return the proper file. (404 not found!)

How could I modify ezPublish OR apache config to bypass the ezpublish engine and redirect the request "http://mysite.com/index.php/mysitename1/fyhj.txt" to the proper location "http://mysite.com/design/mysitename1/flash/fyhj.txt" (I've created a new directory under my site's design to hold flash movies)

Any idea?

Regards,

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Łukasz Serwatka

Thursday 10 March 2005 10:07:48 pm

Hi,

Have you read this article?
http://www.ez.no/ez_publish/documentation/incoming/developing_projects/flash/how_to_display_a_flash_movie_in_pagelayout_tpl

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jade Tremblay

Friday 11 March 2005 7:57:23 am

Hello,

I have already look at post:
http://www.ez.no/ez_publish/documentation/incoming/developing_projects/flash/how_to_display_a_flash_movie_in_pagelayout_tpl
those modifications are already done, and it works fine.

My flash movie is downloaded from the web server and it is displayed correctly. Problem occur when the flash movie itself try to download a config file from the web server. The URL builded by the flash movie is based on the web page's URL. i.e.: it build an URL than contain index.php and the request is processed by th ezpublish engine.

How could I bypass ezpublish engine to fetch the config file in the proper directory?

Any idea?

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Bruce Morrison

Tuesday 15 March 2005 2:17:40 am

Have a look at http://ez.no/ez_publish/documentation/configuration/configuration/tips_tricks/exclude_uris_from_rewrite

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish