Foot position is critical for keeping my knees happy. I find that if my knee is hurting I usually need to rotate my toe in a bit more towards my frame. Also, if you're worried about the resistance messing up the knee, put a brake on your bike and use it.
Good luck