Page 2 of 4
Re: Hosted Videos
Posted: Wed Oct 02, 2013 8:31 pm
by admin
Do you see that you create links in your templates ?
Re: Hosted Videos
Posted: Wed Oct 02, 2013 8:36 pm
by mactron
yes
Re: Hosted Videos
Posted: Wed Oct 02, 2013 8:39 pm
by admin
So you have to change it the way you'd like it to be.
And add a rewrite for you pattern.
Re: Hosted Videos
Posted: Wed Oct 02, 2013 8:50 pm
by mactron
Could you write rewrite please? I can pay..
Re: Hosted Videos
Posted: Wed Oct 02, 2013 8:55 pm
by admin
Yes, I've replied to your PM.
Re: Hosted Videos
Posted: Wed Oct 02, 2013 9:39 pm
by mactron
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^videos/(.*)/(.*)/index.html$ /cgi/out.php?link=images/%{QUERY_STRING}&url=content&content_id=$2 [L]
RewriteRule ^videos/(.*)/(.*)/index.html$ /tube/?content_id=$2 [L]
RewriteRule ^videos/(.*)/(.*)/$ /tube/?content_id=$2 [L]
RewriteRule ^videos/(.*)/(.*)/([0-9]{1,2}).html$ /scj/tube/?content_id=$2&item_id=$3 [L]
#slug galleries
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^videos/([^/]+)/index.html$ /cgi/out.php?link=images/%{QUERY_STRING}&url=content&slug=$1 [L]
RewriteRule ^videos/([^/]+)/index.html$ /tube/?slug=$1 [L]
RewriteRule ^videos/([^/]+)/$ /tube/?slug=$1 [L]
RewriteRule ^videos/([^/]+)/([0-9]{1,2}).html$ /tube/?slug=$1&item_id=$2 [L]
Is this correct?
Re: Hosted Videos
Posted: Wed Oct 02, 2013 10:48 pm
by admin
It should be but you have to test it.
Re: Hosted Videos
Posted: Thu Oct 03, 2013 3:38 pm
by mactron
OK.... problem with htaccess resolved..
Now I have to change path (from "gallery" to "videos" ) for hosted videos in template? Could you tell me where I can to that please?
Thanks!
Re: Hosted Videos
Posted: Thu Oct 03, 2013 3:43 pm
by admin
Yes, do you see where in template you generate links ?
Re: Hosted Videos
Posted: Thu Oct 03, 2013 3:53 pm
by mactron
Yes here.. /scj/admin/?operation=rotation&sub=rot_tube&subsub=rot_cms&
but I need to change only for hosted videos not for outgoing links..