Hello, we apologize for the issue you are facing with setting up a redirection. To create a redirection from /feed/
to /feed/gn
, you can follow these steps in Rank Math:
- Go to Redirections in your WordPress dashboard.
- Click on Add New to create a new redirection.
- In the Source URL field, enter
/feed/
.
- In the Destination URL field, enter
/feed/gn
.
- Make sure to activate the redirect and then click on Add Redirection.
Here’s how it looks when adding a new redirection:
If you want to use regex for more complex patterns, you can select the matching option as Regex and adjust your source URL accordingly. However, for a simple redirect like this, using the direct URLs is sufficient.
If you have any further questions or need assistance, feel free to reply to this ticket, and a human agent from the Rank Math Support team will assist you further!
Sources:
How to Use Regex Redirects in Rank Math » Rank Math
Hello,
If you want to redirect all URLs that end with /feed to /feed/gn, you can create this regex redirect:
Source: (.*)/feed
Type: Regex
Destination: https://yourwebsite.com/$1/feed/gn
Once done, clear your website and server’s cache.
Looking forward to helping you.
Hello,
What is your website URL? We’d love like to test this on our end.
Regards,
This is working but proper not
Hello,
Use the following instead:
Source: (.*)/feed/?$
Type: Regex
Destination: /$1/feed/gn
Let us know how it goes. Looking forward to helping you.
Thank you.
All pages are being directed except the home page
Hello,
That redirection rule we shared is not intended for the homepage. Can you please confirm what type of redirection you need to be done for your homepage? Please share some examples here so we can come up with another rule.
Looking forward to helping you.
Hello,
None of the redirects you shared are for your homepage. And the rule we shared above should work for all the URLs you shared. Can you please confirm which of the URLs isn’t working?
Don’t hesitate to let us know if you need help with anything else.
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.