Issues with WordPress permalinks

This is a typical issue when moving WordPress sites. WordPress stores URLs – both main configuration URLs and resource URLs – in the database. These must be changed in the database when moving to a new domain or mail URL in localhost.

Don’t use simple SQL change queries in the database via adminer or phpmyadmin. WordPress and some themes store configurations and URLs in serialized data, which a simple SQL query won’t correctly handle.

See Moving WordPress « WordPress Codex for full details on moving WordPress and WordPress Serialized PHP Search Replace Tool to correctly find/replace URLs in the database.