2

I'm trying to 301 redirect multiple urls to new url.

Using .htaccess File.

What changes i have to make in .htaccess

  • Have you tried this RewriteRule ^oldpage newpage [R=301,L] – Raj Mohan R Apr 4 at 10:32
  • no i have no idea about this – Rk Rathod Apr 4 at 10:33
1

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

0

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]
  • how can add multiple redirect ? – Rk Rathod Apr 4 at 10:41
  • So you can copy the same and replace with old and new URL. Are you looking for something different and short way? – Raj Mohan R Apr 4 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.