I read the permalinks guide on wp and tried to set up my custom permalinks, but with no luck.
I put wp on my own space in http://www.mydomain.com/site and set up wp to load the content on http://www.mydomain.com, as described here:
(i am saying this just in case it can be connected to the problem described below)
now i am using a custom theme which works with custom post type called 'portfolio'.
i tried to get permalinks like this:
but selecting writing /%post-name%/ but i got:
thanks in advise!