Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

.htaccess to reditect to a subdomain

  • 07-12-2007 03:13PM
    #1
    Registered Users, Registered Users 2 Posts: 338 ✭✭


    Hi,

    I have a quick question on Apache redirects please..

    I have a subfolder on one of our servers say 'videos'. Because of server quotas etc I want to move the contents of this 'videos' folder to a separate domain and automatically redirect requests so that the videos are served from the subdomain to preserve the many links (external from my own site) directly to the videos.

    Will this work?

    RedirectMatch (.*)\.wmv$ http://videos.mydomain.com$1.wmv

    Thanks

    Enda
    --


Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    give this a shot:
    RewriteRule ^(.*)\.wmv$ http://videos.mydomain.com/$1.wmv [L,NC]
    


  • Registered Users, Registered Users 2 Posts: 338 ✭✭doubtfir3


    Thanks for the help - I actually put in my own one and it worked perfectly. Thanks!


Advertisement
Advertisement