Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

Old website has lots of index.php URLs indexed. How to redirect?

  1. #1
    New member
    Join Date
    Nov 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Old website has lots of index.php URLs indexed. How to redirect?

    I just found out the hard way that Magento will redirect anything with index.php in the URL straight to the home page if you're using SEO friendly URLs. The issue is that we have an old website that has a ton of URLs indexed that look like this: /index.php?route=product/product&product_id=70

    So 301 redirects in the htaccess file do not work and I also tried adding the URLs to Magento Admin's URL Rewrite Management with no luck. Is there any way to make this work?

    Example, this is what I'm currently doing that doesn't work thanks to the index.php:
    Code:
    redirect 301 /index.php?route=product/product&product_id=70 http://www.bosu.com/bosu-sports-conditioning-football

    View more threads in the same category:


  2. #2
    New member jenifermage's Avatar
    Join Date
    Aug 2014
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Just do this way

    Code:
    # Redirect old file path to new file path
    Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
    You don't need to put 301

  3. The Following User Says Thank You to jenifermage For This Useful Post:


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •