View Full Version : SWF as Index
Jeff Wheeler
May 13th, 2006, 11:11 AM
Hey, I've got a question.
In Apache, I know you can set the document index to be something like…
index.php index.html
So, why not put index.swf there, and then be able to have a full-browser Flash site, without worrying about the source to do it. It'll automatically work in every browser.
Just make sure to send the right header, and everything will be fine (it is done correctly by default).
drumsnroses
May 13th, 2006, 02:03 PM
I doubt that would work. I checked the configuration file for my local Apache server, and it is configured to only accept index.html, index.php, and index.html.var for the directory index. I know a commercial server might have more extensions, but I'm sure .swf isn't one of them.
So, it would only work if you changed the server configuration.
Templarian
May 13th, 2006, 04:24 PM
Yea... i guess you could just change the .htaccess but then you dont have your Meta tags and that messes up everything. I'm pretty sure you overlooked that the meta tags wont be there, neither will the title of the page.
Jeff Wheeler
May 13th, 2006, 05:49 PM
Ah, the title is the only problem.
The server config thing is no problem… as I said, just add index.swf to the documentindex setting…
Templarian
May 13th, 2006, 06:07 PM
Well the title isnt just small problem and what about meta you ne.. im to lazy to argue... you win.
Jeff Wheeler
May 13th, 2006, 09:22 PM
Nothing looks at meta… it's completely pointless. The title is the only problem…
Then again… you could use frames, and only have one frame linking to the other file.
drumsnroses
May 20th, 2006, 03:26 PM
oops. . . i just realized I said pretty much exactly what you did. I guess I was too sleepy when I read your post.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.