A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: .htaccess problems

  1. #1
    The hand up Mona Lisa's skirt
    Join Date
    Jul 2002
    Location
    _root
    Posts
    46
    Can you not have a htaccess point toward an html page with flash embedded within it?

    I currently have this line of code on my .htaccess file:

    ErrorDocument 404 /errors/404.html


    It points to http://www.justapixel.com/errors/404.html

    When I navigate to the page, it loads fine. But when I type in something like http://www.justapixel.com/nothere.html (where that page does not exhist) it loads the page, but not the flash that is embedded within the page.

    How can I correct this?

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    it wants to load /404.swf (i.e. relative to the _missing_ document rather than the error document); try absolute /errors/404.swf instead

    Musicman

  3. #3
    The hand up Mona Lisa's skirt
    Join Date
    Jul 2002
    Location
    _root
    Posts
    46
    Much thanks, Musicman.

    Going by what you said, I had to embed the flash file with the FULL pathname in order for the htaccess file to be able to find the swf (ie. http://www.justapixel.com/errors/404.swf instead of just "404.swf")

    Works like a charm, now.

    Graci

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center