Forum Moderators: phranque

Message Too Old, No Replies

Cant see a .swf game in IE, but I can in FF

Any input appreciated

         

jkroeis

1:33 pm on Dec 20, 2005 (gmt 0)

10+ Year Member



Hello,

Im currently developing a new site based on a CMS that was used for videos. I have now edited the files so it shows games instead of videos - but its only being showed in FF.

I thought it might have something to do with my .htaccess, which looks like this:

AddType application/x-httpd-php .html .php .htm

Options +FollowSymlinks
RewriteEngine on

RewriteRule ^([&,0-9,a-z,A-Z,(,),-]+)\.htm$ /videos.html?curl=$1
RewriteRule ^category~([&,0-9,a-z,A-Z,(,),-]+)\.htm$ /index.html?cat=$1
RewriteRule ^category/([&,0-9,a-z,A-Z,(,),-]+)\.htm$ /index.html?cat=$1
RewriteRule ^category/index.html$ /index.html
RewriteRule ^category/index.htm$ /index.html

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^.*example.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://1.2.3.4.*$ [NC]
RewriteRule .*\.jpg$ http://www.example.com [R,L]

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^.*example.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://1.2.3.4.*$ [NC]
RewriteRule .*\.avi$ http://www.example.com [R,L]

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^.*example.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://1.2.3.4.*$ [NC]
RewriteRule .*\.mpg$ http://www.example.com [R,L]

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^.*example.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://1.2.3.4.*$ [NC]
RewriteRule .*\.swf$ http://www.example.com [R,L]

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^.*example.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://1.2.3.4.*$ [NC]
RewriteRule .*\.wmv$ http://www.example.com [R,L]

You can see an ex. of a game: <snip>

To summarize: the problem is that the game isnt showing in IE.

Any input/advice would be much appreciated.

Best Regards,
Jonas

[edited by: encyclo at 4:48 pm (utc) on Dec. 20, 2005]
[edit reason] No URLs please, see TOS [/edit]

JAB Creations

6:42 pm on Dec 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey jkroeis...

I don't know if this will help you but I have had a similar problem between IE and Firefox. I'll explain the problem I had/have and maybe it will help your understanding out a little better.

I used...

<param name="wmode" value="transparent">

...to make the background transparent (in order to use the BG color as my site uses CSS themes). However this doesn't work so ducky in IE. Try removing wmode parameter and see if the flash file will work in IE. If not then it will most likely not be the same issue I encoutered.

John

jdMorgan

6:56 pm on Dec 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Usually, we see these problems the other way; Where it works in IE but not in Mozilla-based browsers. When this happens, it's usually because the MIME-type is not being properly set on the server. But that doesn't appear to be the case here.

Just an off-topic note, but you can reduce the first set of five rules to:


RewriteRule ^([&0-9a-z()-]+)\.htm$ /videos.html?curl=$1 [NC,L]
RewriteRule ^category[~/]([&0-9a-z()-]+)\.htm$ /index.html?cat=$1 [NC,L]
RewriteRule ^category/index.html?$ /index.html [L]

Note that groups (characters enclosed by []) are not comma-delimted lists, you can use the [NC] (no-case) flag to make comparisons case-insensitive, and using the [L] flag will improve your server's performance slightly, since it stops mod_rewrite processing if the rule matches and is invoked.

Jim

jkroeis

1:43 pm on Dec 23, 2005 (gmt 0)

10+ Year Member



Thanks a lot. Problem solved!