Change video URL
  • Is there any way to change the default video URL?
    the default one is
    yousite.com/videos/id/video-name/

    I want it to be
    yoursite.com/videos/video-name/ (without the video id)
    is there any way to do it?

    I tried messing with the .htaccess file, but no luck =/
  • DamianDamian June 2012
    This is possible but it's a bit involved. The reason is because the controller for the play page searches for the given video by ID. Video ID is guaranteed to be unique across your site. Video slug isn't. If you changed this to look up the video by the slug then it'll break when any two or more videos have the same title or slug.

    If the above isn't a concern you then simply modify the query in the play page controller. Also modify the htaccess to send only the video slug to the play page.
  • I don't thing that will be a problem, I don't think that it will have duplicate titles
    however, I can mess with the video_add to don't let me upload a video if there's already one with the same title

    thank you so much, it's working!!
    (I also needed to change one line at lib/Video.php)
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership