Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

.htaccess to reditect to a subdomain

Options
  • 07-12-2007 4:13pm
    #1
    Registered Users 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 Posts: 338 ✭✭doubtfir3


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


Advertisement