I added date archives for custom post types as described in this Question (Date archives for custom post type), and they worked perfectly at first.
Problem:
E.g. if I clicked on the link URL/cpt-events/2014, it redirected to the date archive of 2014 as it should.
But now it redirects to the single post page of the first entry of 2014 and not to the archive page.
What I did:
I moved the WordPress folder from a sub folder root/wordpress/all files into the root folder root/all files.
I set the new URL via the config file as described in WP docs. With these lines in the
wp-config.phpdefine('WP_SITEURL', 'http://www.my-url.xyz'); define('WP_HOME', 'same URL');I also updated the
wp_optionsin the database as described in WP docs and updated the domain forsiteurlandhome.I visited/saved/flushed the
settings->permalinksseveral times.
Any ideas what the problem could be or where I should start looking?