Hi,
If you check your URL for the 404 error you will see that it has
probably not redirected - you probably see the original url you typed in
(unless you specify a full "http://" path in your .htaccess for the 404)
- this means that the webserver has "printed" your 404 page for that URL
so any reference to a SWF file or, other resource, either needs to be
absolute, or at least relative to the root of your site so ./404.swf
might not work, but http://www.mysite.com/errorPages/404.swf or
/errorPages/404.swf should work. Alternatively the <param base=""> sets
the root url for your swf, so is the same...
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument (will
be similar for other versions of Apache)
Glen
Cor wrote:
Thanks for replying!
No, I solved it with the help of Henrik by using BASE in my head section of the
404.html.
I don’t understand why it would need /errorPages/404.swf because the 404.html
is at the same place as the swf.
My thought is that my .htaccess calls the /errorPages/404.html, regardless from
the location it is called, and when this get loaded it plays the 404.swf.
If I call it directly it works OK.
So, however it works, I don't understand completely why it needs the BASE
element
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kenneth Kawamoto
Sent: maandag 28 december 2009 14:06
To: Flash Coders List
Subject: Re: [Flashcoders] 404 page not showing with .htaccess
Is your embedding URL to your SWF in your 404.html specified as
site-root relative? i.e. /errorPages/your.swf
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Cor wrote:
Hi List,
I don't know if this is cross-posting, if so I apologize.
I have this in my .htaccess:
ErrorDocument 404 /errorPages/404.html
The 404.html and the 404.swf is on my site in the directory errorPages.
When I type in the url: www.mysite.com/errorPages/404.html is runs as expected.
But when I force an error, like www.mysite.com/bla.html, it shows the 404.html
page.
I can tell this by View Source.
But it doesn't run the swf in it?
Any ideas??
Kind regards
Cor van Dooren
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.722 / Virus Database: 270.14.122/2590 - Release Date: 12/28/09 08:16:00
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders