I have a major issue with wordpress on my new website. Anytime I upload a new media, its attachment page gives me a 404.
My permalink structure is the following:
baseurl + /%category%/%year%/%monthnum%/%day%/%postname%/
I have hundreds of media (imported from old website) and they all give a 404. I can access the media directly but not the attachment page.
There is an attachment.php provided with the theme and I know it works because my old website used the same theme.
Any idea what to do ?