Found the solution just after I posted. Thanks to Thesee for the help in a previous post!!!
Now on to the next problem. My site is in Swedish and therefore I have used ?, ? and ? in the names of things. For example B?cker = Books. The url_rewrite prepares the url by switching these characters to a, a and o. Thus the path /shop/B?cker/n?tet rewrites to /shop/Bocker/natet. When you click the transformed url you get to a page where not much is correct, no info about the book exists. It seems that the only thing on the page is the footer. But if you write the first one (with the Swedish char) in manually things works very good.
What can I do to fix this? The best I think is not to have the ?, ? or ? in the address. Although, nowdays they allow you to but domains with these characters in it.