In order to enter in category, product or admin i need to specify index.php.
So linsk look like this site.dev/index.php/category_name. I m using apache server.
Have you thought about just calling the catalog/category model instead to get the URL from the category ID?
<?php echo Mage::getModel("catalog/category")->load(7)->getUrl(); ?>
7 would be your category ID.