[SOLVED] Whoops, our bad… Magento ERROR

I installed magento with sample data. Everything is ok, but when i go to front end an click on any link, it show :

Whoops, our bad…

The page you requested was not found, and we have a fine guess why.

* If you typed the URL directly, please make sure the spelling is correct.
* If you clicked on a link to get here, the link is outdated.

SOLUTION:

My Trick:
1. Login to your admin Panel.
2. You will see a warning message “One or more of the Indexes are not up to date:  Product Attributes, Product Prices, Catalog URL Rewrites, Product Flat Data, Category Flat Data, Category Products, Catalog Search Index, Tag Aggregation Data, Stock Status. Click here to go to Index Management and rebuild required indexes.”
3. Just click on Index Management and rebuild required indexes.

This should solve the problem.