Support » Plugin: Redirection » How to redirect main domain uploads to subdomain uploads folder

Viewing 3 replies - 1 through 3 (of 3 total)
  • hey
    did u find any solution for this?
    Please share it
    thank you

    • This reply was modified 1 year, 1 month ago by  asc1212.
    chillmen

    (@chillmen)

    Hi,
    I found this solution:

    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$
    RewriteRule ^wp\-content\/uploads\/?(.*)$ "http\:\/\/subdomain\.yourdomain\.com\/$1" 

    But does not work for me, maybe you will get more luke

    asc1212

    (@asc1212)

    tried this for a sub-directory and it does not work

    I tried this

    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$
    RewriteRule ^wp\-content\/uploads\/?(.*)$ "http\:\/\/yourdomain\.com\/yoursubdir\/$1" 

    when it was placed in /yoursubdir/.htaccess file, all image were not seen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to redirect main domain uploads to subdomain uploads folder’ is closed to new replies.