301 Redirect Multiple Url using .htaccess Magento 2
-
25-02-2021 - |
Question
I'm trying to 301 redirect multiple urls to new url.
Using .htaccess File.
What changes i have to make in .htaccess
Solution
Try This :-
<IfModule mod_rewrite.c>
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
redirect 301 /old_url new_url with full path
......
You can set multiple redirects Like this
OTHER TIPS
Add this in your .htaccess file replace the old and new URL for each one
RewriteEngine on
RewriteRule ^venia-accessories/venia-belts.html http://magento.com/venia-accessories/venia-jewelry.html [R=301,L]
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange