Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) htaccess and mime types

  • Curtis Thompson

    August 19, 2010 at 9:53 pm

    hello…

    ok – try this then:

    – back up and remove the current .htaccess file in the web root
    – take the meta type portion of that file and create a new .htaccess in the /TMC directory – so just this part:

    AddType audio/x-m4a MPEG-4 media m4a
    AddType video/mp4 MPEG-4 media mp4
    AddType video/x-m4v MPEG-4 media m4v

    then build your pages as you normally would – maybe just do a test page with your 3 videos to see how that works first…

    i can’t explain why you get a 404 file not found on the 2 non-.mov copies of the movie in the site root, but since i can’t see all your web code, it’s impossible to say (they could have the wrong permissions and a web user can’t even see them, for example) – but try the above and see how it goes. you shouldn’t need any of the rewrite condition rules or the deny/allow snippets in the new .htaccess file

    (alternately you can probably just leave the htaccess file in the root if you want and remove the stuff mentioned here – 6 of one, half dozen of the other, really)

    sitruc

  • Jeff Mack

    August 19, 2010 at 9:57 pm

    So should there only be those 3 lines in a text file, and then upload it to the /TMC folder – nothing in the root account?

    Jeff

  • Curtis Thompson

    August 19, 2010 at 10:05 pm

    ya just those 3 lines – htaccess works on any content that is at its level or beneath it, so if you put it in the root, it will cover the tmc dir, but sometimes if an entire site is in a subdir, i just put the htaccess there so that i can keep track of it…

    then build your iphone-specific pages with links to the m4v movies and it should work out ok (again sticking my head in the sand wrt the 404 on the current files as i don’t have enough exposure to say why that is happening, but it’s not related to htaccess mime types)

  • Jeff Mack

    August 19, 2010 at 10:11 pm

    k, I’ll try this and report back.

    Jeff

  • Jeff Mack

    August 20, 2010 at 12:32 am

    No luck Curtis, Here’s the test page: https://www.texasmusicchannel.net/TMC/Site/Blank.html

    I put 3 hyperlinks on the page to the three files. Click a red square. The .mov plays on the desktop but not he iPhone 3G. The other two are file not found.

    Jeff

  • Curtis Thompson

    August 20, 2010 at 2:11 am

    hello…

    the 404 error is vexing. if you remove the htaccess file and try again (remember to perhaps wait and also clear cache), do the links to the other 2 movies then work?

    also – i’m not 100% up on adding my mime types via htaccess, but it does seem like you have a bit of extraneous info there – have you tried a simpler set like this:

    AddType video/x-m4v m4v
    AddType audio/x-m4a m4a
    AddType video/mp4 mp4

    so i’d say:

    1. try to disable the htaccess file and see if you can at least then see the movies via the links

    2. if you cannot see them still, then i’m really lost and it could be something related to godaddy somehow. if you can see them via the links at that point, then try the simpler addtype calls above and see if those work (so replace yours with those and reinstate the htaccess file)

    sitruc

  • Jeff Mack

    August 20, 2010 at 3:05 pm

    Curtis, I worked my ass off last night on this and think I have found the problem. It came down to two issues. First, the page not found errors were due to the mime types. I tried to play files without the htaccess and got th page not found. I then added the htaccess and I got the file that wouldn’t play. This was the second problem. Evidently my h264 files were encoded with a quicktime format versus the mpg format. My m4v’s are now working on my iphone. I am rendering a h.264 with an mpg format which will produce an mp4. I am pretty sure that will work when it is done and I will report back.

    When I encoded hundreds of videos, I encoded them to h264’s with a quicktime format. I am trying to figure out that mime type to see if I can utilize those files. If nothing else from now on, I can produce 1 encode and utilize it twice, once in a flash playlist and one as a stand alone file.

    Thanks for all of your help!

    Jeff

  • Jeff Mack

    August 20, 2010 at 8:27 pm

    Curtis,

    I got it all figured out. Here is a test page. https://www.texasmusicchannel.net/Test2/Blank.html

    There is a flash playlist with all three types of files. They play great on my desktop. Then at the bottom of the page is test 2 and test three. Test two has my videos in a video gallery on my mobile me account and test three has videos in a video gallery on my go daddy sight.

    All of the videos were reencoded using mpeg as the format vs. quicktime.

    Now, if I could only find out how to get the quicktime formats to play on the sight, I wouldn’t have to re-encode hundreds of videos.

    I can’t thank you enough for helping me yesterday.

    Jeff

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy