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

[Rank Math SEO Plugin] Strip Category Base


mmhh
 Share

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?

Link to comment
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

 

 

Link to comment
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

 

 

Link to comment
Share on other sites

  • Support

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...