Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: .htaccess and Flash problem |
|
Author |
|
bceagle7
Joined: 15 Apr 2010 Posts: 3
|
Posted: Thu 15 Apr '10 19:21 Post subject: .htaccess and Flash problem |
|
|
Hi everyone!
I'm having a major issue on my personal website and, although I designed the website, my tech knowledge is pretty limited, so please bear with me.
Two pages on my website utilize flash - my gallery (SlideShowPro) and my guestbook (Flash Nifties Flash Drawing Guestbook). For 2+ years, those pages worked perfectly fine; last week, I contacted my site host to change my hosting plan (they had a new promo that was cheaper and offered unlimited bandwith/space etc). That day both flash pages stopped working. When I checked the files on my host directory, the only file that had been modified was the .htaccess file (modified by the host, not me). I've contacted the host for support, but they insist it is a coding error on my end (even though I hadn't changed a thing in 2+ years). Therefore, I'm trying to figure out myself what the issue is - is it possible that the .htaccess file is not allowing my Flash pages to work correctly? If so, how would I attempt to fix that? The contents of the .htaccess file do not mention .swf anywhere - is it something as simple as just adding .swf to the .htaccess file? I tried deleting the .htaccess file from the root folder, but then none of the pages on my site worked.
The .htaccess file in my root folder reads like this:
Code: |
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html
RewriteCond %{REQUEST_FILENAME}.htm -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.htm
RewriteCond %{REQUEST_FILENAME}.gif -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.gif
RewriteCond %{REQUEST_FILENAME}.jpg -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.jpg
RewriteCond %{REQUEST_FILENAME}.png -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.png
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.php
RewriteCond %{REQUEST_FILENAME}.pl -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.pl
|
Thank you so much for any help you could provide! Sorry for my limited tech knowledge...
~ Andrew |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 15 Apr '10 21:54 Post subject: |
|
|
I'm not good in rewriting, but I think you only have to add the swf extension to the .htaccess file
Code: |
RewriteCond %{REQUEST_FILENAME}.swf -f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.swf
|
Helpful can be the apache error log to see which file is requested when the browser and maybe RewriteLog |
|
Back to top |
|
bceagle7
Joined: 15 Apr 2010 Posts: 3
|
Posted: Fri 16 Apr '10 4:43 Post subject: |
|
|
Thank you - I tried adding that to the .htaccess file, but unfortunately nothing changed in respect to the flash pages. How do I find the error log? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 16 Apr '10 10:02 Post subject: |
|
|
in your httpd.conf there is ErrorLog. e.g.
Code: |
ErrorLog "logs/error.log"
|
Depending on your installation the path can be
C:\Program Files\Apache Foundation\logs\error.log
C:\Apache2\logs\error.log
on linux
/var/log/apache2/error_log |
|
Back to top |
|
bceagle7
Joined: 15 Apr 2010 Posts: 3
|
Posted: Mon 26 Apr '10 4:17 Post subject: |
|
|
Thanks for all the responses - my host has finally fixed the issue; it was actually a .php related problem (not sure exactly what they did to solve it)... |
|
Back to top |
|
|
|
|
|
|