Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Force URLs containing categories to 404
 
jennibrush
Jr. Member
 
Total Posts:  3
Joined:  2014-02-28
 

Hello,

After some consideration, we have decided to change the product URLs on a particular site back to a flat structure, to avoid duplicate content issues.

The problem is, there are tons of links already out there in the world that still contain the various categories, and those URLs still work. Is there any way to make those URLs 404, so we can redirect them to the current, flat URLs?

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
nChannel
Guru
 
Avatar
Total Posts:  329
Joined:  2012-02-28
 

Can you just 301 redirect the old URL’s to the new URL’s on the new site structure? You’ll want to update your sitemap as well and resubmit it to Google and Bing. That way if someone lands on an old page, they’re redirected to the current one.

Or if you have old pages like that, you can 404 them, but then suggest to the user to find what they’re looking for in the section or pages you want.

Mark
http://www.nChannel.com

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top