*

osclassic

  • ***
  • 34 posts
301 redirect url to updated category name
« on: March 01, 2021, 11:23:22 AM »
I have osclass in its own directory (not the root directory) and when a category name is changed, I want the old URL redirected to the new URL eg. osclass/old-category-name redirected to osclass/new-category-name

I tired the following in the root .htaccess
RewriteRule ^oslcass/old-category-name$ /osclass/new-category-name [R=301]

I also tried the following in my osclass .htaccess (above all other rules)
RewriteRule ^old-category-name$ /new-category-name  [R=301]

Neither of those work. Any ideas?  Thanks!