Hello,
I understand that you are facing issues with setting up a 301 redirect after changing the permalink of your “places” listing and encountering 404 errors. To set up a 301 redirect properly without affecting your SEO, you can use Rank Math’s redirection feature.
Here’s how you can create a 301 redirect using Rank Math:
- Go to your WordPress Dashboard.
- Navigate to Rank Math SEO > Redirections.
- Click on Add New Redirection.
- Enter the old URL in the Source URL field and the new URL in the Destination URL field.
- Select the redirection type as 301 Permanent Move.
- Click on Add Redirection to save the redirect.
By following these steps, you can set up a 301 redirect using Rank Math, which will help preserve your traffic, rankings, and links without affecting your SEO negatively.
If you have multiple URLs that need to be redirected, you can also add them in bulk using Rank Math.
If you encounter any issues or need further assistance, please feel free to ask. Thank you for reaching out!
Sources:
How to Fix the Submitted URL Seems to Be a “Soft 404” Error » Rank Math
How to Redirect Posts After Changing URLs » Rank Math
Types of Redirects – Which Redirect Should You Use? » Rank Math
How to Fix ‘Duplicate Without User-Selected Canonical’ Status in Google Search Console » Rank Math
How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
Hi, with the method indicated I can only change 1 link.
The problem is that all the links have changed and I would like to modify the htaccess file to make a mass change. can you help me?
Thank you
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Could you please share some of the exact old and new URLs of your website so that we can suggest the proper redirection?
However, you can also use the regex redirection on your website to redirect all the URLs at a time.
For more details, you can check this URL: https://rankmath.com/kb/how-to-use-regex-redirects/
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
You can use the following regex redirection on your website and see if that works for you:
Source: vetrine/(.*)
Match: regex
Destination: /ita/$1
Let us know how it goes. Looking forward to helping you.
Thank you.
It seems to work. However, if I wanted to insert the rule into the htaccess file, what should I write and where? At the beginning or end of the htaccess file?Thank you
Hello,
If you want to use the .htaccess
then you can use the following rule:
# BEGIN REDIRECT
RewriteEngine On
RewriteRule ^vetrine/(.*)$ http://www.yourdomain.com/ita/$1 [R=301,L]
# END REDIRECT
Please make sure to change http://www.yourdomain.com/
with the actual domain of your website.
You canadd the rule before the WordPress rewrite rules.
Here’s how you can edit the .htaccess file using Rank Math:
https://rankmath.com/kb/edit-htaccess/
Please do take a backup before editing your .htaccess file.
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
Hello,
We are glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.