itisme64 Posted December 27, 2018 Report Share Posted December 27, 2018 Hi, Checking and testing your plugin and looks very impressive. Some questions does it works in Spanish language ? Is there a shortcode for the Breadcrumbs? And one of the most challenging one is about the option redirections ? I run a old "CMS" system with 19800 post that have own structure and think your redirection option can solve most of it! Old link structure examples : _t is tag _c is category _h is page _p is post ?q= is search http://www.example.com/this-is-a-tag_t.html > http://www.example.com/tag/this-is-a-taghttp://www.example.com/this-is-a-category_c.html > http://www.example.com/this-is-a-category or http://www.example.com/this-is-a-tag_t_p7.html > http://www.example.com/tag/this-is-a-tag/page/7 http://www.example.com/this-is-old-page-system__h_7>www.example.com/page/7 but there are some more "exceptions " The old CMS had old mobile landing http://www.example.com/mobile/this-is-a-tag_t.html > http://www.example.com/tag/this-is-a-tag http://www.example.com/this-is-a-tag_t_p7.html > http://www.example.com/tag/this-is-a-tag/page/7 or search http://example.com/?q=search-words&p=222 > http://example.com/?s=search-words http://example.com/mobile/?q=search-words > http://example.com/?s=search-words I think that first i must remove the word /mobile/ in any url. Is there a way of set priority ? So first "action" find all /mobile/ and remove ? Any help would be appreciated Cheers Link to comment Share on other sites More sharing options...
Support Montgomerie Posted December 27, 2018 Support Report Share Posted December 27, 2018 Hello, Thank you for contacting MyThemeShop today. Here are the answers to your questions:1. Not all the tests, especially readability, will work with any other language other than English. But the plugin will work perfectly fine including all other tests. 2. Yes, please use the following code to show the Breadcrumbs: [rank_math_breadcrumb] 3. Please try the following Regex for redirecting your old URL structure: http://www.example.com/this-is-a-tag_t.html > http://www.example.com/tag/this-is-a-tag Source: (.*)_t.html Destination: /tag/$1 http://www.example.com/this-is-a-category_c.html > http://www.example.com/this-is-a-category Source: (.*)_c.html Destination: $1 http://www.example.com/this-is-a-tag_t_p7.html > http://www.example.com/tag/this-is-a-tag/page/7 Source: (.*)_t_p(\d+).html Destination: tag/$1/page/$2 http://example.com/mobile/?q=search-words > http://example.com/?s=search-words Source: .*?q=(.*) Destination: /?s=$1 Hope that helps. If you have any further question(s), please let us know. 🏁Rank #1 on Google With our WordPress SEO Plugin ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
itisme64 Posted December 27, 2018 Author Report Share Posted December 27, 2018 Hi Montgomerie, Thanks for the quick reply. Will give it a go on a test envoirement first. The regex looks perfect if i test it so that is great, the only problem is that i have also /mobile/ version of each link so there exist a "desktop" and "mobile" version https://regex101.com/r/q1gAmh/4 what is best way to remove the /mobile/ as they could appear in each link ? So https://www.example.com/mobile/ must be https://example.com _t is tag_c is category_h is page_p is post Link to comment Share on other sites More sharing options...
Support Montgomerie Posted December 27, 2018 Support Report Share Posted December 27, 2018 Hello, Sorry for missing that one out. Can you please try with the following Regex?https://regex101.com/r/3nSbIl/1 Hope that helps. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
itisme64 Posted December 27, 2018 Author Report Share Posted December 27, 2018 Hi, thanks for the link but if you see https://regex101.com/r/3nSbIl/2 how to remove the /mobile/ always as you can see there many possibility or must i make desktop versions and mobile versions of each ? With this regex you can do magic but looks like also destroy a lot as i thought first impression works. But if i check the logs i see even "traffic" comes in with links like See here https://regex101.com/r/kx9wsi/3 is it possible with regex to get until & as this search is always between ?q=search & where from & is page info and can be removed in the destination. cheers Link to comment Share on other sites More sharing options...
Support Montgomerie Posted December 27, 2018 Support Report Share Posted December 27, 2018 Hello, Please create separate Regex rules and you should be good. You can create 307s at first and then change them to 301s after a week or so if nothing shows up in the error logs or no one reports any error. Hope that helps. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
itisme64 Posted January 2, 2019 Author Report Share Posted January 2, 2019 Hi Montgomerie, Happy new year. Thanks for the tip. There is one other regex that could create problems and that is old "tag" with only www.example.com/this-is-tag_t (where _t is the tag) and looks like it redirect some old files to the login page. https://example.com/wp-login.php?reauth=1&redirect_to=https://example.com/wp-admin/ and the regex recognize the _to= How to I filter only the _t and not _to ? https://regex101.com/r/3nSbIl/3 Cheers Link to comment Share on other sites More sharing options...
Support Montgomerie Posted January 3, 2019 Support Report Share Posted January 3, 2019 Hello, Happy New Year to you as well! Please try the following code: (.*)_t$ Hope that helps. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
Recommended Posts