开发者

htaccess preventing xml file to be read (flash based xml gallery)

I have a flash movie which resides in a folder named ‘gallery’ in the root directory. When the page is loaded, it is unable to load the xml file, but the movie loads fine. Both the xml file and the movie are located within the ‘gallery’ folder.

I am assuming it has something t开发者_如何学Pythono do with the .htaccess file

While checking through firebug (it shows gallery.xml inside activities folder) GET gallery.xml http://localhost/adv/activities/gallery.xml

MY htaccess file

RewriteEngine on

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$   http://localhost/adv/$1 [R=301,L]
RewriteRule activities/(.*) activity.php?actid=$1 [L]


@localhost: It sounds like you might be trying to access the XML within Flash with relative paths instead of absolute ones; change the path to absolute and it should work.

Relative path, e.g.: gallery/gallery.xml

Absolute path, e.g.: http://localhost/adv/gallery.xml

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜