Page 1 of 1

Need help with parsing and redirect using Magento

Posted: Thu Aug 26, 2010 3:06 pm
by fastguys
Hi, all. I am not a developer and I know about enough to get me in trouble and I need some help. Any help is appreciated. Here's the issue.

The Problem: My old shopping cart (OpenCart) wrote product addresses as something like this: http://fastguys.com/index.php?route=pro ... duct_id=61 . That is the google listing for our A/C delete bracket and has great ranking, but it is still for the old cart. The new cart won’t return a 404 because any address http://fastguys.com/index.php +anything else delivers the home page. That means google never sees a 404 for that bad page and it stays in the search ranks and restricts our new site from ranking.

Question: Is there a way that I can parse and redirect all addresses that include http://fastguys.com/index.php****** where *****=any values. The new cart (Magento) uses http://fastguys.com/index.php as the home page.

Thanks for any help in advance.

Andrew Smith

Re: Need help with parsing and redirect using Magento

Posted: Thu Aug 26, 2010 3:12 pm
by shawngoldw
You can redirect all requests to a domain or in your case yourdomain/index.php?**** through mod rewrite in a .htaccess file. There are lots of tutorials on how to do this, just search mod rewrite htaccess

Maybe someone else can give you a better idea of how to do it, but so far I've only done it very superficially and will be of no more help to you :D


Shawn

Re: Need help with parsing and redirect using Magento

Posted: Thu Aug 26, 2010 3:16 pm
by fastguys
Thanks. I will look.

Re: Need help with parsing and redirect using Magento

Posted: Thu Aug 26, 2010 3:52 pm
by fastguys
OK, I still don't understand the language. How do you tell php to redirect all index.php**** to 404? What does the "?" represent? How do you give it the variable of any value?

Thanks again for your help.