I am not very experienced with .htaccess files and editing, could you guys please help me with this?
I need to redirect all url’s that start with
mydomain.com/shop/category/EXAMPLE-CATEGORY-NAME
to this:
mydomain.com/shop-products/EXAMPLE-CATEGORY-NAME
For example, if I set the rule on 'www.blahblah.com', then it should redirect http://www.blahblah.com/shop/category/thisisanexample/
to
http://www.blahblah.com/shop-products/thisisanexample/
Try putting this in the htaccess file in your document root:
Or using mod_rewrite:
If you don’t want the redirect the browser (i.e. change the URL in the browser’s address bar), remove the
R=301flag from the brackets so it’s just[L], then going tohttp://www.blahblah.com/shop/category/thisisanexample/will make it so the browser’s address bar is unchanged but gets served the content at/shop-products/thisisanexample/.