Forum Replies Created

Page 27 of 54
  • hello…

    you seem to have a lot of unused code in there, but that’s not causing the problem. you have 2 issues:

    1. your large image is way too wide. the bg image (https://www.evildingo.co.uk/Images/EvilD_Main.jpg) is 1440px wide. very few people run their browsers that wide, so while you have your content centered in that 1440px, if i’m running less than that, i’ll see a scrollbar and your content won’t be centered.

    FIX: trim the unused white space off either side and either use a table (old school way, but easier, and it works) to center the content or center a div on the page.

    2. your flash music player (auto-play of music on a site is still frowned upon, btw) is positioned absolutely to a specific point on the page (via the “#apDiv2” css declaration).

    FIX: you have to position it relative to the main image, which will be relative to the width of the browser. again, the fix here is the same as for #1 – you can make a table to hold both and center that, or you can center a div and set the content to align right in it.

    i have put a version of your page on my server with the above issues addressed via tables (as those will be easier to grok than positioned divs):

    https://sitruc.com/cow/evildingo/

    changes:

    1. removed extraneous white space around main image
    2. broke off copyright portion on bottom into separate gif
    3. put content into a table aligned in the center of the page
    4. removed unused html in page
    5. made html compliant with the specified doctype

    you can view the source there and download the updated images from my server via the urls which are shown in the source…

    hope that helps!

    sitruc

  • Curtis Thompson

    August 20, 2010 at 2:11 am in reply to: htaccess and mime types

    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

  • Curtis Thompson

    August 19, 2010 at 10:05 pm in reply to: htaccess and mime types

    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)

  • Curtis Thompson

    August 19, 2010 at 9:53 pm in reply to: htaccess and mime types

    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

  • Curtis Thompson

    August 19, 2010 at 9:07 pm in reply to: htaccess and mime types

    hello…

    don’t delete stuff yet – i realize we’re still testing…

    so i guess i’m still not clear on what you want (regardless of what you’ve tried to this point)…let’s say for the sake of discussion that 1.mov is right where you want it, and you have 1.m4v and 1.mp4 there as well.

    if you embed the movie in a page, you won’t be able to show one version for iphone/ipad and another for others just by doing htaccess stuff. if, on the other hand, you are giving the link directly to somebody (i.e. https://foo.com/1.mov), then you can redirect browsers that go to that url based on the http host and get them to the right file for their platform…

    so it sounds like you’d rather go for option (b) from my original choices, which is to have an iphone user get redirected to a special portion of your site if they go to a like non-iphone portion. so for example, let’s say you have:

    https://foo.com/videos/index.html

    and you want to have iphone visitors see a special iphone version automatically. you can use rewrite rules to automatically have them go to:

    https://foo.com/videos/index_iphones.html

    is that a desired goal here? if so, i can set up an example for you on another server that you could look at, or you can google up the answer to that one…

    if not, let me know what you want to do ultimately (not really what you’ve tried) so that i can best help you figure out how to achieve that goal…

    sitruc

  • Curtis Thompson

    August 19, 2010 at 8:41 pm in reply to: htaccess and mime types

    hello…

    ok – so do you know how you have the redirect setup to the TMC sub dir? is that in an htaccess file or in code somewhere as a meta or the likes?

    that could be part of your problem, but w/o being able to see everything, it’s hard to debug…

    wrt the movies – to go back to the start, do you want to:

    a) automatically redirect any request to 1.mov to 1.m4v if the user is visiting on an iphone or an ipad?

    b) redirect any request from an ipad or iphone to a sub dir that has these videos?

    best way to temporarily disable the htaccess there now is to just rename it to “.htaccess_OFF” or the likes and then it won’t kick in and you can see where the TMC redirect is happening…

    (and i’ve heard that godaddy doesn’t honor these changes for a few minutes, which honestly makes no sense, but at a minimum you’ll need to clear your cache when reloading the site)

    sitruc

  • Curtis Thompson

    August 19, 2010 at 5:53 pm in reply to: htaccess and mime types

    hello…

    from what i’m seeing, your rewrite rules aren’t doing anything at all – these 2 lines:

    RewriteCond %{HTTP_HOST} ^(https://www\.texasmusicchannel\.net)(:80)? [NC]
    RewriteRule ^(.*) https://texasmusicchannel.net/$1 [R=301,L]

    would in theory redirect any request to “https://www.texasmusicchannel.net” to the non-www “texasmusicchannel.net”…however HTTP_HOST does not include the http protocol in it, so this rewrite condition should never match. it also wouldn’t help with your mime types at all, because it’s just a url shuffle…

    however, i notice when i go to either:

    https://www.texasmusicchannel.net
    https://texasmusicchannel.net

    i automatically get redirected to:

    https://texasmusicchannel.net/TMC/home.html

    and there is definitely nothing in those rewrite conditions to do that, so i don’t know what all you have going on there, but it would appear that what you are using on the server is not what you pasted here?

    also – since i can’t see your files, i have to ask the dumb question – are you sure you have the 1.mp4 and 1.m4v files on your godaddy account?

    sitruc

  • Curtis Thompson

    August 19, 2010 at 3:52 pm in reply to: htaccess and mime types

    hello…

    ok – next thing is to find out if the settings for apache at godaddy allow you to override those types of things – htaccess can be configured on a server level to allow a lot or a little, and most large isps tend towards the latter to avoid having users make a mess.

    (not that you are, but you get what i’m saying)

    so check to see if godaddy allows you to override those settings. can you also point us to the site where you read this as a recommendation?

    sitruc

  • Curtis Thompson

    August 19, 2010 at 3:15 pm in reply to: htaccess and mime types

    hello…

    first step is – this will only work if you are running a *nix hosting plan running apache as the webserver as opposed to a windows hosting plan…

    do you know if you are running apache?

    sitruc

  • Curtis Thompson

    August 11, 2010 at 3:16 pm in reply to: HTML5 Video on the iPad

    hello…

    is it only on the ipad that you see this (in other words, only in safari)?

    maybe try the page in other html5 compatible browsers and see if you see the same problem – if not, then it could be a bug/issue in safari, which would help you narrow down a search for a solution…

    sitruc

Page 27 of 54

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