[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[Rank Math SEO Plugin] Some questions about your plugin


itisme64
 Share

Recommended Posts

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-tag
http://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

  • Support

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

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

  • Support

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

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

  • Support

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

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

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...