Changing a photobucket url and redirecting.

Discussion in 'Site & Server Administration' started by TDave00, Sep 17, 2009.

  1. #1
    I manage a phpbb site and our users use photobucket a lot to post images, video, slideshows, etc.

    Images are no big deal, but for our users to post videos or slideshows they have to remove some stuff from the url that photobucket gives them.

    For example:
    This is a direct link to a slideshow.
    http://s305.photobucket.com/albums/nn213/tdave00/?action=view&current=44972a4a.pbw
    But the embed code that I use for the BB code requires that "?action=view&current=" be removed from the url.

    I was thinking I could change the bb code so that it was something like below.

    http://mysite.com/pbredirect=http://s305.photobucket.com/albums/nn213/tdave00/?action=view&current=44972a4a.pbw
    Code (markup):
    Hoping that would redirect it to the pbredirect directory so that I could place and htaccess file there to use modrewrite and strip
    http://mysite.com/pbredirect=
    Code (markup):
    and
    ?action=view&current=
    Code (markup):
    from the url and then redirect with the correct url.

    If that would work could anyone share the code to strip those parts from the url? Thanks.
     
    TDave00, Sep 17, 2009 IP