How to redirect main domain uploads to subdomain uploads folder
-
How to do the following,
when a user clicks “https://maindomain.com/wp-content/uploads/file.pdf”, the user should be redirected to “https://subdomain.com/wp-content/uploads/file.pdf”.I have found some solutions to edit the .htaccess file to redirect the entire main domain to the subdomain with exact URL at the end. But I don’t want the entire main domain to be redirected to the subdomain, I just want the /uploads/*/file-name to be redirected to the subdomain /uploads/*/file-name
Viewing 3 replies - 1 through 3 (of 3 total)
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.