I've this url, where I've my website now, however i migrate it to this one. I've got a custom permalink structure:

/%category%/%postname%/

Within the first link (old site) al works fine, however in the brand new one, just the default option (?p=123) structure works.

You need to state that the 2nd link, the URL's indicates another server, this means the 2nd url is definitely an CNAME during my server. I additionally import the .htaccess file.

How do i make work my custom structure within the new server?