Which file in Magento is a router of catalog?

Well. I have several same pages:

1) domain/category/subcategory/product-page - THIS is FULL PATH
2) domain/category/product-age
3) domain/product-page

I need to set 404 for 2 and 3. I don`t ask you to solve my problem (but if you know, you are welcome!), but please. What file/class/function I should change?

Answers


Router file for product will be

app/code/core/Mage/Catalog/controllers/ProductController.php

you should override this file instead of doing changes in core file.


Need Your Help

Validate objects of a List using OVal

java validation oval

I am writing validations for a class where I specify the error message. One member is a List<> of objects of another class that also has validations. I would like to validate each object from that

EditText to TextView when button pushed

android sdk

How can I make it so that it uses whatever is in the edittext, as the text view like if I type “hello” push the button and it sets the textview as “hello” then when you push the button again it era...