• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] 404 on video embed problem

Started by ridahost,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ridahostTopic starter

when i try to embed a video from youtube it gives me 404 oops! page not found

my htaccess is  :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^embed/([^/]*)/$ /embed.php?id=$1 [L]
RewriteRule ^feed(.*)$ feed.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
</IfModule>
<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>



and the hosting is godaddy
  •  

PHPVibe A.

Hi,

if you add http://www.youtube.com/watch?id=bla bla
some hosts will kill the page cause it conflicts with mod_security.

ridahostTopic starter

  •  

PHPVibe A.

Exclude the sharing pages from the mod_security rules would be the solution (but since you are on shared, not sure if they are going to help), or choose an hosting without mod_security (or one configured to allow http:// in $_POST).

markzipps

Did we ever get to the bottom of this issue? I am having the same problem!

Just spoke to GoDaddy, the same provider as the initial poster. They have told me that it's not something they block.

However, they did say that the max upload size is 32MB on their shared hosting.

  •  

PHPVibe A.

Walk me trough it, upload vs sharing, different pages and handlers.
If you add youtube.com/ without http:// does it work?

markzipps

Yeah, I can understand the confusion. I was merely making a point that I will probably have to move to a dedicated anyway as 32MB is not going to cut it for uploads.

It works without the http://. why doesn't it work with this included?
  •  

PHPVibe A.

This is the reason

Quote from: Alexander on
Exclude the sharing pages from the mod_security rules would be the solution (but since you are on shared, not sure if they are going to help), or choose an hosting without mod_security (or one configured to allow http:// in $_POST).

If you move to dedicated or VPS, or ask them to remove the security rule for your account it will work fine.
Meanwhile we are working to provide some sort of pre-Post encryption to avoid this.

markzipps

Thanks for your help. I have just setup a VPS with LeaseWeb. They were not prepared to remove the security.
  •  

Similar topics (7)