Changing Permalinks

How can I change the permalinks of my website? My website is and when i set the permanlink setting to generic (showing the website works but when I change the permalinks to postname or to any other option it only opens the front page the other pages won’t open with the followuing error:

The resquested URL was not found on this surver.

Problemalready solved.