I want to get product's url so i use getProductUrl()
in result its return a url address that seems be correct but its not,When i want to open it the store return 404 not found error.
$product = Mage::getModel('catalog/product')->load($productId);
$url => $product->getProductUrl();
//It's return
// http://mg1.dev/index.php/catalog/product/view/id/905/s/plaid-cotton-shirt-royal-blue-l/