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 6 years, 2 months ago by asc1212.

    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

    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.