Check our WordPress 101 & 201 FREE Video Tutorials here
Jump to content
mmhh

[Rank Math SEO Plugin] Strip Category Base

Recommended Posts

after deactivating this option theres no redirect back to the old format with category in the link

example after activating the feature

yourdomain.com/category/news  redirect to yourdomain.com/news/

after DEACTIVATING

yourdomain.com/news/ gives a 404 it doesnt redirect back to yourdomain.com/category/news

im not a seo pro is this normal or a bug maybe not important for google?

Share this post


Link to post
Share on other sites

i activated redirection module and redirected all links manually that works but if i export the redirections (export to .htaccess) and deactivate the redirection module and copy the rules in my htaccess it didnt work

thats how rank math rules looks

<IfModule mod_rewrite.c>
RewriteRule ^music\-news$ https://yourdomain.com/category/music-news/ [R=301,L]

thats not working in htaccess

i changed it manually to

RewriteEngine On
Redirect 301 /music-news/ https://yourdomain.com/category/music-news/

that works great

 

 

Share this post


Link to post
Share on other sites

i activated redirection module and redirected all links manually that works but if i export the redirections (export to .htaccess) and deactivate the redirection module and copy the rules in my htaccess it didnt work

thats how rank math rules looks

<IfModule mod_rewrite.c>
RewriteRule ^music\-news$ https://yourdomain.com/category/music-news/ [R=301,L]

thats not working in htaccess

i changed it manually to

RewriteEngine On
Redirect 301 /music-news/ https://yourdomain.com/category/music-news/

that works great

 

 

Share this post


Link to post
Share on other sites

Hello,

Thank you for contacting MyThemeShop and sorry for any inconvenience that might have been caused due to that.

Please share your WordPress login details in the "Sensitive Data" section by editing your first post on this ticket and follow the instructions shown in the screenshot below:
sensitive.jpg

Please make a reply once you update the details, so we get notified.

Looking forward to helping 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.

Share this post


Link to post
Share on other sites

you can close this post i did it manual with .htaccess yesterday and deactivated redirection module so even if i give you login details you cant see anything anymore 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...