Can any .htaccess experts figure this out?
-
Hi, so I’m trying to redirect a category and all it’s posts to point to my new category url. I used the code below which directed mywebsite.com/category1 to mywebsite.com/category2, but if I click on any old posts such as mywebsite.com/category1/post it doesn’t redirect to mywebsite.com/category2. I’m sure I have used the code below to achieve this before so I’m a bit confused!
RewriteRule ^category-number-1(.*) https://www.mywebsite.com/category-number-2/$1 [R=301,L]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Can any .htaccess experts figure this out?’ is closed to new replies.