douglaswalker Posted May 21, 2022 Posted May 21, 2022 Hi all I am trying to redirect a url in htaccess which is formed like this https://www.mysite.com.au/product-name-pr-64.html I need to remove the -pr- bit and replace it with -p- so it looks like this and 301 redirects https://www.mysite.com.au/product-name-p-64.html
Hotclutch Posted May 21, 2022 Posted May 21, 2022 A simple redirect will work: Redirect 301 /product-name-pr-64.html /product-name-p-64.html
douglaswalker Posted May 21, 2022 Author Posted May 21, 2022 Thank you sorry I should have been clearer product-name changes and so does 64.html only -pr- and -p- stays the same
Recommended Posts
Archived
This topic is now archived and is closed to further replies.