How to build links compatible with clean and "dirty" URLs? I have a development site that doesn't support clean URLs, my production site does support them.
If I build a link in the body of a node like:

&lt;a href="view-something/4,7"&gt;View something&lt;/a&gt;


This shows ok on my production site but gives a 404 while in development site.
How do I build universally good URLs ?
You should be able to define such Links with the menu_hook

http://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_menu/7

Especially lookt at the Wildcard options i used them recently to define own urls