Hello,
We apologize for the issue you are facing with redirecting your images in bulk. To achieve this using Rank Math, you can utilize the Redirections Manager to set up a bulk redirect for your image files. Here’s how you can do it:
-
Navigate to the Redirections Manager: Go to Rank Math SEO → Redirections in your WordPress admin area.
-
Add New Redirection: Click on the Add New button.
-
Bulk Import URLs: In the Source URLs field, you can paste a list of URLs you want to redirect. Since you want to redirect all images from one domain to another, you can use a wildcard approach. However, Rank Math does not support wildcards directly in the source URL field. Instead, you will need to list each specific URL or use a pattern if applicable.
For example, if you have multiple images, you can list them like this:
/wp-content/uploads/2024/09/Tapete-de-Yoga-Yogateria-Luna-Align.jpg
/wp-content/uploads/2024/09/another-image.jpg
/wp-content/uploads/2024/09/image3.png
Each URL should be on a new line.
-
Set Destination URL: In the Destination URL field, enter `https://rankmath.com/wp-content/uploads/2023/05/filter-by-redirected-posts.jpg (or the corresponding destination for each image).
-
Click Add Redirection: After entering all the necessary information, click the Add Redirection button to save your changes.
For more detailed guidance on setting up redirections, you can refer to our detailed guide on setting up redirections.
If you have many images and want a more automated solution, we recommend considering our professional setup service available at Rank Math Services. This service requires a PRO subscription and ensures that your plugin setup is fully correct and adheres to the latest SEO standards.
Thank you for raising this concern! If you have any further questions or need assistance, please reply to this ticket, and a human agent will assist you further.
Sources:
How to Import Redirects to Rank Math SEO » Rank Math
How to Import Redirects to Rank Math SEO » Rank Math
I need better answers, i have 11k images.
Can we take ****.jpg. ****.png. ****.webp and redirect to subdomain?
Hello,
Thank you for contacting us, and sorry for any inconvenience that might have been caused.
Rank Math doesn’t handle redirection across different domains. The best way to achieve this redirection is via the .htaccess file.
You can create a redirect rule for this using .htaccess and place this rule on the main domain site.com.br
:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^site\.com\.br$ [NC]
RewriteRule ^wp-content/uploads/(.*)\.(jpg|png|webp)$ https://img.site.com.br/wp-content/uploads/$1.$2 [R=301,L]
Here’s how you can edit the .htaccess file using Rank Math: https://rankmath.com/kb/edit-htaccess/
Please take a backup before editing your .htaccess
file.
We hope this helps you fix the issue.
Please let us know if this works for you or if you need any further assistance. We are always happy to help.
Thank you
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.