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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

.htaccess to reditect to a subdomain

  • 07-12-2007 3: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