I’ll use this post as an example:
http://churchonhigherground.org/worship/sermons/2010/04/10-0411-01/
The video file it’s trying to play won’t load:
[video src="http://churchonhigherground.org/worship/sermons/files/2010/04/10-0411-01.flv" /]
The server returns a 500 error. This is usually a result of something being incorrect in one of your .htaccess
files or whatnot.
Alex:
OK, so the problem is probably with my .htaccess file.
WordPress is installed in the /worship folder. This is the .htaccess file in the root of the server (the folder above /worship):
Redirect /index.html http://churchonhigherground.org/worship
AddType flv-application/octet-stream .flv
AddType video/x-flv .flv
Here’s the .htaccess file in /worship:
RewriteEngine On
RewriteBase /worship/
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
These are the only 2 htaccess files between the server root & those video files. I have to admit I don’t know anything about .htaccess files except that they have something to do with security & mapping the virtual path to a file to the physical path. They appear to be using regular expresessions to do the URL path transformation.
If there is nothing wrong with the .htaccess file, then I have to assume there’s something wrong with the files themselves. The file permissions for all of the videos are set to 755.
Thanks
Tony
You may want to start a new thread for help with your .htaccess
issues as it isn’t related to my plugin and I’m not very good with these kinds of things. 🙂
Alex:
I don’t think the problem is with the .htaccess file. This is for 2 reasons: first, I posted in the Multisite forum about this issue & I replaced the contents of the .htaccess file with new contents & the problem is still there. Secondly, I have 3 videos that play; one is in the same exact folder as the video you used as an example in one of your replies.
I downloaded the same video (10-0411-01.flv) to my macbook using FileZilla & set up a post on my dev site for the same video. The video plays I think that means that the video is not corrupted.
Also, another plugin, the NexGen plugin, isn’t displaying my images in that. I think the problems could be related.
So what could be causing my problem???
Thanks
Tony
So what could be causing my problem???
No idea, but it’s not my plugin.
You should contact your host.